-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
str.get_dummies uses astype(str) #6634
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
maybe only operate on |
closing in favor of #6885 (good examples their) |
IIRC this one was about str.get_dummies rather than pd.get_dummies. So slightly different but related/can use same test case. |
oh...ok....suspect same issue though |
I merged fix for #6885 this still open? |
This is also a "decision" type issue, atm we apply This means you can do stuff like:
|
ahh...makes sense, that is fine, does this blow up on unicode? |
That's the claim, suspect on py3 only ? |
So we could just kill this functionality, I had thought this was what all the string methods did... :s (it isn't) |
well you can do:
(or just do the 'U' on py3) |
I can't repo this on py3, I'm sure this came up for an actual bug. |
I wrote this so my fault. This probably means some stuff with break when passing stuff with unicode.
Will add example.
The reason is to include integers as strings before getting dummies, maybe should just drop that functionality?
The text was updated successfully, but these errors were encountered: