-
Notifications
You must be signed in to change notification settings - Fork 915
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
Fix default value of str.split expand parameter. #10457
Fix default value of str.split expand parameter. #10457
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.
Thanks @bdice for spotting this!
rerun tests |
2 similar comments
rerun tests |
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-22.06 #10457 +/- ##
===============================================
Coverage ? 86.34%
===============================================
Files ? 140
Lines ? 22294
Branches ? 0
===============================================
Hits ? 19249
Misses ? 3045
Partials ? 0 Continue to review full report at Codecov.
|
@gpucibot merge |
This is a small fix to match the pandas API for the
expand
parameter ofSeries.str.split
. Only boolean values are allowed. Currently the default is set toNone
and then replaced with the intended default ofFalse
. This PR changes it to have a default value ofFalse
.This is a tiny bit of an API break because users who explicitly passed
None
will now see an error instead of getting the intended default value, but the previous behavior was a bug with respect to pandas API compatibility.