Skip to content

BUG: Series.loc[dtstr] type depends on monotonicity #42265

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 2 commits into from
Jul 1, 2021

Conversation

jbrockmendel
Copy link
Member

xref #42258 which makes the same change for PeriodIndex._can_partial_date_slice but its behavior-neutral there.

cc @mroeschke

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

Nice simplifications. Looks to just need a whatsnew.

@mroeschke mroeschke added this to the 1.4 milestone Jun 27, 2021
@jbrockmendel jbrockmendel added Bug Indexing Related to indexing on series/frames, not to indexes themselves labels Jun 30, 2021
@jreback jreback merged commit d8041ca into pandas-dev:master Jul 1, 2021
@jbrockmendel jbrockmendel deleted the bug-can_partial_date_slice branch July 1, 2021 23:39
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indexing with Series.__getitem__ with DatetimeIndex differs based on monotonicity
3 participants