Skip to content

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

Open
@jbrockmendel

Description

@jbrockmendel

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    IndexingRelated to indexing on series/frames, not to indexes themselvesdatetime.datestdlib datetime.date support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions