Repository navigation
fix: drop trailing separator in concat_str(..., ignore_nulls=True) for pandas-like and Dask backends - #3967
Merged
FBruzzesi merged 11 commits intoSep 20, 2026
Conversation
FBruzzesi
requested changes
Sep 20, 2026
8 tasks done
concat_str(..., ignore_nulls=True) for pandas-like and Dask backends
Contributor
Author
|
Thanks for the thorough review and clean suggestions @FBruzzesi! Applied the refactoring to both pandas-like and Dask namespaces (iterative accumulation without storing intermediate series), and updated the test suite to the parameterized regression test with xfail markers for |
This was referenced Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
In
concat_str(..., ignore_nulls=True), the separator between non-null values was previously derived by checking if the preceding column had a non-null value (~null_mask[:-1]). When the subsequent column was null but the preceding column was non-null, a dangling separator was still appended before the empty string, causing outputs like'x-1-'instead of'x-1'.This updates both the pandas-like and Dask implementations so that separator (i) (placed before item (i)) is included if and only if there was at least one preceding non-null value (
has_prev) AND current item (i) is non-null (~null_mask[i]).What type of PR is this? (check all applicable)
Related issues
concat_str(ignore_nulls=True)keeps the separator before a trailing null on pandas-like and Dask #3962AI assistance
Checklist