Skip to content

cannot write resampled frame to excel TypeError: 'Period' object does not support indexing #2240

@simonm3

Description

@simonm3

Excel_to function is not working with some dataframes with period index

this works for a dataframe with timeseries index

close.to_excel("temp.xlsx")

this does not work. fails with error shown above

monthly=close.resample('M', kind='period')
monthly.to_excel("temp.xlsx")

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDatetimeDatetime data dtypeIO DataIO issues that don't fit into a more specific label

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions