-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Propogating NaN values when using str.split (#18450) #18462
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18462 +/- ##
==========================================
- Coverage 91.35% 91.31% -0.05%
==========================================
Files 163 163
Lines 49695 49698 +3
==========================================
- Hits 45401 45382 -19
- Misses 4294 4316 +22
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #18462 +/- ##
==========================================
- Coverage 91.33% 91.32% -0.02%
==========================================
Files 163 163
Lines 49752 49767 +15
==========================================
+ Hits 45443 45449 +6
- Misses 4309 4318 +9
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.
add a whatsnew note for 0.21.1
pandas/tests/test_strings.py
Outdated
s = Series(["foo,bar,baz", NA]) | ||
result = s.str.split(",", expand=True) | ||
exp = DataFrame([["foo", "bar", "baz"], [NA, NA, NA]]) | ||
tm.assert_frame_equal(result, exp) |
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 this a separate test. this doesn't fail currently (because of the assert_frame_equal comparisons), so add an additional check that assert all nans are actually nan
d64995a
to
a08e940
Compare
thanks @WillAyd nice. keep em coming! |
…s-dev#18462) (cherry picked from commit 20f6512)
git diff upstream/master -u -- "*.py" | flake8 --diff