-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
API: Index.str follow-ups (extract/get_dummies) #9980
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
Comments
@sinhrks thanks I just noticed this too, I'm happy to submit a PR |
@mortada Appreciated! |
mortada
added a commit
to mortada/pandas
that referenced
this issue
Apr 25, 2015
mortada
added a commit
to mortada/pandas
that referenced
this issue
Apr 28, 2015
mortada
added a commit
to mortada/pandas
that referenced
this issue
May 4, 2015
mortada
added a commit
to mortada/pandas
that referenced
this issue
May 6, 2015
mortada
added a commit
to mortada/pandas
that referenced
this issue
May 7, 2015
jreback
pushed a commit
that referenced
this issue
May 8, 2015
…9980) simplify str_extract(), pass name into _wrap_result()
closed by #9985 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow-ups for #9667. Noticed 2 methods which can return
DataFrame
.1.
Index.str.extract
As shown in docstring, it returns
DataFrame
when the expression has 2 or more groups.Currently,
Index.str.extract
raises an error in both cases. I think 1st case should returnIndex
, and 2nd case should raise understandable error.2.
Index.str.get_dummies
Because it returns
DataFrame
, should raise an understandable error.CC: @mortada
The text was updated successfully, but these errors were encountered: