Skip to content

BUG: Slicing timeseries with over 1000000 entries with time fails #8667

Closed
@willpan

Description

@willpan

Slicing a timeseries with time results in a TypeError if the timeseries contains over 1,000,000 entries.

import pandas as pd
from datetime import time

ser = pd.Series(index=pd.date_range('2000-1-1', periods=1000000, freq=pd.datetools.offsets.Second()))
ser.head(999999)[time(15,0)] # this is fine
ser[time(15,0)] # this fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDatetimeDatetime data dtypeIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions