Repository navigation
Document that Series.unique order may differ from pandas - #12493
Open
PranavAchar01 wants to merge 1 commit into
Open
PranavAchar01 wants to merge 1 commit into
PranavAchar01 wants to merge 1 commit into
Conversation
Add a Notes section to Series.unique explaining that, unlike pandas, the order of the returned values is not guaranteed because a shuffle is used to combine partitions, and that split_out=1 preserves the original order for low-cardinality data. Closes dask#11758
Contributor
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 25 files ±0 25 suites ±0 7h 7m 40s ⏱️ - 3m 43s Results for commit 60e8270. ± Comparison against base commit e0be880. |
This branch has not been deployed
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.
Closes #11758.
Adds a
Notessection toSeries.uniquedocumenting that the order of thereturned values is not guaranteed to match pandas, because the unique values are
combined across partitions with a shuffle (which does not preserve input order),
and that passing
split_out=1preserves the original order for low-cardinalitydata.
This follows the maintainers' explanation in the issue:
split_out=1) preserves the original order.Docstring-only change.
Disclosure: this documentation change was prepared with the assistance of Claude Code and reviewed against the maintainers' comments in the issue.