Skip to content

BUG: Adjust truncate for decreasing index #33769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 26, 2020
Merged

BUG: Adjust truncate for decreasing index #33769

merged 7 commits into from
Apr 26, 2020

Conversation

dsaxton
Copy link
Member

@dsaxton dsaxton commented Apr 24, 2020

@dsaxton dsaxton added the Indexing Related to indexing on series/frames, not to indexes themselves label Apr 24, 2020
@jreback jreback added this to the 1.1 milestone Apr 25, 2020
"before, after, indices",
[(1, 2, [2, 1]), (None, 2, [2, 1, 0]), (1, None, [3, 2, 1])],
)
def test_truncate_decreasing_index(self, before, after, indices):
Copy link
Contributor

Choose a reason for hiding this comment

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

can you test both of these with a DTI as well

@jreback
Copy link
Contributor

jreback commented Apr 25, 2020

ping on green

@dsaxton
Copy link
Member Author

dsaxton commented Apr 26, 2020

ping on green

@jreback Added tests and green (tests got a little verbose but couldn't think of more succinct wording)

@jreback jreback merged commit c632f72 into pandas-dev:master Apr 26, 2020
@jreback
Copy link
Contributor

jreback commented Apr 26, 2020

kk thanks

@dsaxton dsaxton deleted the truncate-decreasing branch April 26, 2020 21:47
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: DataFrame.truncate() returns incorrect data if the index is sorted in descending order
3 participants