Skip to content

Actually ignore index when asked in assert_eq#8396

Merged
jsignell merged 1 commit intodask:mainfrom
gjoseph92:dataframe/assert-eq-ignore-index
Nov 18, 2021
Merged

Actually ignore index when asked in assert_eq#8396
jsignell merged 1 commit intodask:mainfrom
gjoseph92:dataframe/assert-eq-ignore-index

Conversation

@gjoseph92
Copy link
Collaborator

When passing ignore_index=True, two things were wrong:

  1. We were resetting the index before sorting. After sorting, the values will be in the same order, but the newly-reset indexes may now be in different orders.
  2. We were still sorting by the index in _maybe_sort.

cc @jcrist @jsignell

  • Tests added / passed
  • Passes pre-commit run --all-files

When passing `ignore_index=True`, two things were wrong:
1. We were resetting the index before sorting. After sorting, the values will be in the same order, but the new indexes may be in different orders
2. We were still sorting by the index in `_maybe_sort`
Copy link
Member

@jsignell jsignell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good to me. Thanks Gabe!

@jsignell jsignell merged commit c19a830 into dask:main Nov 18, 2021
@gjoseph92 gjoseph92 deleted the dataframe/assert-eq-ignore-index branch November 18, 2021 21:47
@gjoseph92 gjoseph92 mentioned this pull request Jan 12, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants