Skip to content

Periods not correctly represented in to_excel() with monthly PeriodIndex #4133

Closed
@andreas-h

Description

@andreas-h

When I have a Panel with a PeriodIndex with freq="M" and I use mypanel.to_excel(), then the PeriodIndex gets represented as YYYY-MM-DD in the output Excel file. I would expect it to be rather YYYY-MM.

Is this a bug or a feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIO DataIO issues that don't fit into a more specific labelIO Excelread_excel, to_excel

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions