Skip to content

[Feature Request] Add name attribute to pd.DataFrame #24244

Closed
@jolespin

Description

@jolespin

Code Sample, a copy-pastable example if possible

# Your code here
pd.DataFrame(data, index=sample_labels, columns=iris_features, name="iris")

Please let me know if this is out of scope. I think it could be a useful feature to have since pd.Index, pd.Series, xr.DataArrays, and xr.Dataset has them. I usually deal with dataframes from 2 different populations where I keep them organized by dictionaries. I know that I could still do df.name = "iris" but I think an official name argument would benefit people too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions