-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: all-na corner case for str.cat #24045
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
Hello @h-vetinari! Thanks for submitting the PR.
|
Codecov Report
@@ Coverage Diff @@
## master #24045 +/- ##
===========================================
+ Coverage 42.46% 92.34% +49.88%
===========================================
Files 161 161
Lines 51557 51557
===========================================
+ Hits 21892 47612 +25720
+ Misses 29665 3945 -25720
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24045 +/- ##
=======================================
Coverage 42.45% 42.45%
=======================================
Files 161 161
Lines 51561 51561
=======================================
Hits 21888 21888
Misses 29673 29673
Continue to review full report at Codecov.
|
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.
looks good. ping on green.
doc/source/whatsnew/v0.24.0.rst
Outdated
@@ -1364,6 +1364,7 @@ Strings | |||
- Bug in :meth:`Index.str.partition` was not nan-safe (:issue:`23558`). | |||
- Bug in :meth:`Index.str.split` was not nan-safe (:issue:`23677`). | |||
- Bug :func:`Series.str.contains` not respecting the ``na`` argument for a ``Categorical`` dtype ``Series`` (:issue:`22158`) | |||
- Bug in :meth:`Index.str.cat` when the result contained only NaN (:issue:`24044`) |
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.
double backticks on NaN
pandas/tests/test_strings.py
Outdated
|
||
# all-NA target | ||
expected = Index([np.nan] * 4, dtype='object') | ||
expected = expected if box == Index else Series(expected, |
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.
use the
if box == Series:
.....
for this one
@jreback Ping on green. |
thanks @h-vetinari |
git diff upstream/master -u -- "*.py" | flake8 --diff