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

Comments

Projects
None yet
2 participants
@jreback
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 this to the 0.20.0 milestone Jan 25, 2017

@gfyoung

This comment has been minimized.

Show comment
Hide comment
@gfyoung

gfyoung Jan 30, 2017

Member

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).

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 from API: to_* Index methods to API: to_series/to_frame Index methods Mar 27, 2017

@jreback

This comment has been minimized.

Show comment
Hide comment
@jreback

jreback Sep 23, 2017

Contributor

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

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@gfyoung

gfyoung Oct 7, 2017

Member

@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?

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 gfyoung/pandas that referenced this issue Oct 8, 2017

gfyoung added a commit to gfyoung/pandas that referenced this issue Oct 8, 2017

gfyoung added a commit to gfyoung/pandas that referenced this issue Oct 8, 2017

gfyoung added a commit to gfyoung/pandas that referenced this issue Oct 9, 2017

gfyoung added a commit to gfyoung/pandas that referenced this issue Oct 9, 2017

gfyoung added a commit to gfyoung/pandas that referenced this issue Oct 9, 2017

@jreback jreback modified the milestones: 1.0, 0.21.0 Oct 9, 2017

jreback added a commit that referenced this issue Oct 9, 2017

kchomski-reef added a commit to reef-technologies/pandas that referenced this issue Oct 16, 2017

alanbato added a commit to alanbato/pandas that referenced this issue Nov 10, 2017

No-Stream added 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