Skip to content

ENH: DataFrame.name #8194

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
seth-p opened this issue Sep 5, 2014 · 4 comments
Closed

ENH: DataFrame.name #8194

seth-p opened this issue Sep 5, 2014 · 4 comments
Labels
Duplicate Report Duplicate issue or pull request

Comments

@seth-p
Copy link
Contributor

seth-p commented Sep 5, 2014

Currently Series has a name member, which is useful for retaining the name of the sliced index/column when the Series is produced by slicing a DataFrame.

It would be useful for DataFrame similarly to have a name member, so that when a DataFrame is produced by slicing a Panel, the name of the sliced index is retained.

And while you're at it, may as well add name to Panel and even Panel4D...

@jreback
Copy link
Contributor

jreback commented Sep 6, 2014

dupe of #447

This is technically very easy to do (just add the attribute when its finalized).
BUT its actually really complicated because of how/when to propogate.

E.g.

df_a + df_b should be what? (for the name)
(and their are myriad operations like this)

@jreback jreback closed this as completed Sep 6, 2014
@jreback jreback added the Dupe label Sep 6, 2014
@seth-p
Copy link
Contributor Author

seth-p commented Sep 6, 2014

Sorry about the duplicate issue...

I would think one could address these issues for DataFrames the same way they're addressed for Series... Anyway, count me as one additional vote in favor.

@jreback
Copy link
Contributor

jreback commented Sep 6, 2014

well after u read thru all that
go for it

it IS very easy to add
just need to propogate correctly

it's doable

@seth-p
Copy link
Contributor Author

seth-p commented Sep 6, 2014

I think it's a bit outside my zone of competence, though I might take a look at it if I get bored...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants