-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Improvements to str_cat #12297
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
Improvements to str_cat #12297
Conversation
…ed friendly error message
`sep` as an arg, rather than a kwarg. | ||
(:issue:`11334`). | ||
|
||
.. code-block:: python |
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.
make the first 2 an ipython block so they run, the 3rd can be a code-block (just so you can show the error and not the entire traceback)
looks good. some small comments and you have linting errors:
|
ping when green. |
@hack-c thanks, I make the flake fixes. |
Hey @jreback so is this all done? |
yep all done. thanks! just trying to get the 0.18.0RC1 out the door :) |
Ok, great @jreback! How can I help? I want to do more :) |
@hack-c great! just troll issues, you can select the difficulty labels as you want! |
closes #11435
closes #11334.
Modified behavior of str_cat to ignore NaN values in the Series by default.
Added some doc examples to make the behavior with nan more clear, and catch an error condition when a sep is passed instead of an others (array) as an argument and print a more intuitive error message.
This is a retry of PR #12000.
Before, if NaN values were present in the Series, calling
cat()
on it would return NaN, unlike the rest of theSeries.str.
API. This behavior has been amended to ignore NaN values by default.(#11435)
A new, friendlier ValueError was also added to protect against the mistake of supplying the
sep
as an arg, rather than a kwarg.(#11334)