Skip to content

ENH: add a "name" field to DataFrame, consistent with Series #9223

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
mangecoeur opened this issue Jan 10, 2015 · 1 comment
Closed

ENH: add a "name" field to DataFrame, consistent with Series #9223

mangecoeur opened this issue Jan 10, 2015 · 1 comment
Labels
API Design Duplicate Report Duplicate issue or pull request

Comments

@mangecoeur
Copy link
Contributor

It would be logical to add a name field to DataFrame, similar to Series. Then when you construct a Panel it can try to use the name, in the same way as when you construct a DataFrame from Series.

It would also be useful when loading/saving DataFrames to files and DBs, for example at the moment to save to HDF you always have to add a key and for SQL a table name, it would be logical to attach these to the DataFrame itself as its name parameter.

@jreback
Copy link
Contributor

jreback commented Jan 10, 2015

dupe of #447

long discussed. It IS possible, just would have to be done carefully.

The primary argument against have a DataFrame having named attributes that propogate is kind of moot for this simple type of attribute, which could be propogated similarly to the Series.name attribute.

@jreback jreback closed this as completed Jan 10, 2015
@jreback jreback added API Design Duplicate Report Duplicate issue or pull request labels Jan 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants