-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REGR: Series.str.encode("base64") #32080
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
Conversation
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.
not sure if u saw @TomAugspurger comments
you can’t encode bytes only decode them
see #32048 (comment) |
maybe i don’t understand you comment |
we don't use the standard library. we use codecs so maybe we need a deprecation warning. |
no the point is we shouldn’t do this at all if you have bytes you can’t encode |
IIUC it's a regression. and if we don't want to allow it we should have a deprecation cycle. |
@jreback is it worth fixing up the tests and adding a special case for |
this was done on purpose. i see no reason to change anything |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff