Skip to content

FIX disallow MultiIndex in Series constructor GH4187 #4190

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

Merged
merged 1 commit into from
Jul 13, 2013

Conversation

hayd
Copy link
Contributor

@hayd hayd commented Jul 10, 2013

fixes #4187 (at least the segfault part).

Constructing Series with a MultiIndex raises NotImplementedError, the option (to implement this) is to return .to_series() ?

@hayd
Copy link
Contributor Author

hayd commented Jul 10, 2013

anyone have an opinion on this (whether pd.Series(a_multiindex) should return a_multiindex.to_series()).

If anyone says "yes", I'll update.

@jreback
Copy link
Contributor

jreback commented Jul 10, 2013

@hayd do it internally (e.g. don't use new) (you can just do a_multiindex.to_series() in init)

@hayd
Copy link
Contributor Author

hayd commented Jul 10, 2013

I hate __new__ so much...

so I can just more this same couple of lines into the init?

@jreback
Copy link
Contributor

jreback commented Jul 10, 2013

sorry....leave it there for now....that's ok (when refactor series will fix it)

@hayd
Copy link
Contributor Author

hayd commented Jul 12, 2013

@jreback so should I change it to m..to_series() or shall we merge as NotImplemented (should fix this before 0.12, noone wants a segfault...).

@jreback
Copy link
Contributor

jreback commented Jul 12, 2013

just leave as not implemented

hayd added a commit that referenced this pull request Jul 13, 2013
FIX disallow MultiIndex in Series constructor GH4187
@hayd hayd merged commit 0e80039 into pandas-dev:master Jul 13, 2013
@hayd hayd deleted the disallow_multi branch July 13, 2013 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Series from MultiIndex causes segfault
2 participants