Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jolespin opened this issue Dec 11, 2018 · 1 comment
Closed

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

jolespin opened this issue Dec 11, 2018 · 1 comment

Comments

@jolespin
Copy link

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.

@jreback
Copy link
Contributor

jreback commented Dec 12, 2018

see discussions here #447

this would add quite some complexity for not a lot of gain

@jreback jreback closed this as completed Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants