Skip to content

ENH: Make attributes saved by default #61906

@acampove

Description

@acampove

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

Hi,

When doing

df.attrs['array'] = array

df.to_parquet('file.parquet')

I see that I am not saving the array, could this be implemented?

Cheers

Feature Description

The code above would safe array and it would load it when loading the parquet file into a dataframe.

Alternative Solutions

I guess doing it myself separately with some helper function

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIO Parquetparquet, featherNeeds TriageIssue that has not been reviewed by a pandas team membermetadata_metadata, .attrs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions