Skip to content

PeriodIndex cannot infer frequency in cases where Period can #8466

Closed
@diogocp

Description

@diogocp

xref #6771

Period("2000-01")
Period('2000-01', 'M')

PeriodIndex(["2000-01"])
ValueError: freq not specified and cannot be inferred from first element

Same problem with 2000-Jan and Jan-2000. Works fine if I pass freq="M".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions