Skip to content
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

API: DatetimeIndex.get_loc(date) partial-slice? #47043

Open
jbrockmendel opened this issue May 17, 2022 · 0 comments
Open

API: DatetimeIndex.get_loc(date) partial-slice? #47043

jbrockmendel opened this issue May 17, 2022 · 0 comments
Labels
datetime.date stdlib datetime.date support Indexing Related to indexing on series/frames, not to indexes themselves

Comments

@jbrockmendel
Copy link
Member

jbrockmendel commented May 17, 2022

ATM if we pass an stdlib date object, it gets upcast to a datetime object at midnight. But we could reasonably interpret it as covering the entire duration of that date, like we would with the corresponding string e.g. "2016-04-05".

@jbrockmendel jbrockmendel added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels May 17, 2022
@simonjayhawkins simonjayhawkins added Indexing Related to indexing on series/frames, not to indexes themselves datetime.date stdlib datetime.date support and removed Needs Triage Issue that has not been reviewed by a pandas team member labels May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datetime.date stdlib datetime.date support Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

No branches or pull requests

3 participants