Skip to content
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

API: to_series/to_frame Index methods #15230

Closed
jreback opened this issue Jan 25, 2017 · 3 comments
Closed

API: to_series/to_frame Index methods #15230

jreback opened this issue Jan 25, 2017 · 3 comments
Labels
API Design Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Jan 25, 2017

xref #15216 (comment)

Index.to_series()
MultiIndex.to_frame()

should we harmonize? (e.g. make both available to both? for compat), leave it like this?

should also prob add the index=True kw to .to_series() for compat.

@jreback jreback added API Design Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex labels Jan 25, 2017
@jreback jreback added this to the 0.20.0 milestone Jan 25, 2017
@gfyoung
Copy link
Member

gfyoung commented Jan 30, 2017

I don't see why we shouldn't harmonize API. It makes it easier to use (obviously, the behavior will be different but at least the functions can be called).

@jreback jreback modified the milestones: 0.20.0, 0.21.0 Mar 23, 2017
@jreback jreback changed the title API: to_* Index methods API: to_series/to_frame Index methods Mar 27, 2017
@jreback
Copy link
Contributor Author

jreback commented Sep 23, 2017

@gfyoung feel like diving in on these? (we may need to deprecate some things).

@jreback jreback modified the milestones: 0.21.0, 1.0 Oct 2, 2017
@gfyoung
Copy link
Member

gfyoung commented Oct 7, 2017

@jreback : Just going through the backlog here and finally got to this. For starters, MultiIndex.to_series already exists thanks to inheritance with Index. Thus, I don't see why we wouldn't want to have to_frame() for consistency for Index. Quite simple to implement IMO.

What do you think?

gfyoung added a commit to forking-repos/pandas that referenced this issue Oct 8, 2017
gfyoung added a commit to forking-repos/pandas that referenced this issue Oct 8, 2017
gfyoung added a commit to forking-repos/pandas that referenced this issue Oct 8, 2017
gfyoung added a commit to forking-repos/pandas that referenced this issue Oct 9, 2017
gfyoung added a commit to forking-repos/pandas that referenced this issue Oct 9, 2017
gfyoung added a commit to forking-repos/pandas that referenced this issue Oct 9, 2017
@jreback jreback modified the milestones: 1.0, 0.21.0 Oct 9, 2017
jreback pushed a commit that referenced this issue Oct 9, 2017
ghost pushed a commit to reef-technologies/pandas that referenced this issue Oct 16, 2017
alanbato pushed a commit to alanbato/pandas that referenced this issue Nov 10, 2017
No-Stream pushed a commit to No-Stream/pandas that referenced this issue Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex
Projects
None yet
Development

No branches or pull requests

2 participants