Skip to content

infer_freq end assumption #1789

@jseabold

Description

@jseabold

I'm not sure whether this is something that should be fixed/changed or not, but right now infer_freq takes the first value in a DatetimeIndex and uses that to impose end of period assumptions. E.g., if I have

dates = sm.tsa.datetools.dates_from_range('1959Q2', '2009Q3')
pandas.Index(dates).inferred_freq

I get 'Q-JUN' just because of where the series starts. Would it be better to just use the default 'Q' -> 'Q-DEC'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions