Skip to content

API: DataFrame constructor for subclassing Series #9762

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
sinhrks opened this issue Mar 31, 2015 · 1 comment · Fixed by #9802
Closed

API: DataFrame constructor for subclassing Series #9762

sinhrks opened this issue Mar 31, 2015 · 1 comment · Fixed by #9802
Labels
API Design Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Milestone

Comments

@sinhrks
Copy link
Member

sinhrks commented Mar 31, 2015

Series.to_frame uses pandas.DataFrame statically as frame constructor. It is nice if Series has overridable property to specify frame-like constructor, like DataFrame has _constructor_sliced.

How about Series._constructor_frame?

@jreback
Copy link
Contributor

jreback commented Apr 2, 2015

maybe _constructor_expanddim? should add to generic as NotImplemented; change to_panel (in frame) to use as well

@jreback jreback added Reshaping Concat, Merge/Join, Stack/Unstack, Explode API Design labels Apr 2, 2015
@jreback jreback added this to the Next Major Release milestone Apr 2, 2015
@jreback jreback modified the milestones: 0.16.1, Next Major Release Apr 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants