Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ENH: Series.str.get_dummies() raise on string type (follow up to PR #59577) #59786
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
ENH: Series.str.get_dummies() raise on string type (follow up to PR #59577) #59786
Changes from 44 commits
e6f9527
dafb61d
bb79ef2
24be84f
09b2fad
50ed90c
9e95485
9a47768
0c94bff
9702bf7
8793516
bad1038
163fe09
3d75fdc
d68bece
c2aa7d5
0fd2401
920c865
800f787
d8149e6
6cbc3e8
532e139
cd5c2ab
822b3f4
ba05a8d
37dddb8
6fbe183
87a1ee8
8706af6
9d7d7f8
fa41092
3d20d2b
392782c
870457e
7ec0b5f
8e18ee0
798a8ea
3ac320e
fbdddbb
8eec58e
a912bd8
bd8c059
961eb6c
151316d
f829533
171d381
8b26e8c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if instead of explicitly disallowing specifically string dtype, should we allow any numeric dtype? (so raise an error
if not is_numeric_dtype(dtype)
)Because right now this would also allow the user to specify they want datetime dtype, for example, which also does not make much sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rhshadrach thought here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that we can restrict to just numeric here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aaronchucarroll @rhshadrach do you remember why this change was included?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see that is based on a comment from @mroeschke at #59577 (comment)