-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Fix downcast argument for DataFrame.fillna() #15278
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
albertvillanova
commented
Feb 1, 2017
•
edited
Loading
edited
- closes DataFrame.fillna() downcast argument does not work when the value for fillna is a dict instead of a scalar #15277
- tests added / passed
- passes git diff upstream/master | flake8 --diff
- whatsnew entry
needs tests, pls add for both series & dataframe (in pandas/tests/series/test_missing.py and similar for frame). add alongside the existing tests pls add a whatsnew note (bug fixes for 0.20.0) |
Codecov Report
@@ Coverage Diff @@
## master #15278 +/- ##
==========================================
- Coverage 86.33% 86.32% -0.01%
==========================================
Files 139 139
Lines 51149 51157 +8
==========================================
+ Hits 44157 44162 +5
- Misses 6992 6995 +3
Continue to review full report at Codecov.
|
closes pandas-dev#15277 Author: Albert Villanova del Moral <[email protected]>
112c8a6
to
d691954
Compare
pandas/tests/series/test_missing.py
Outdated
@@ -268,6 +268,19 @@ def test_datetime64tz_fillna_round_issue(self): | |||
|
|||
assert_series_equal(filled, expected) | |||
|
|||
def test_fillna_downcast(self): | |||
# infer int64 from float64 | |||
s = pd.Series([1., np.nan]) |
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.
this is a flake error :<
lgtm. though you are going to fail linting because of indentation :< ping on green |
Is it OK now or some additional changes are needed? Should I squash all the commits into a single one? |
thanks @albertvillanova squashing is really no longer necessary as our merging process will squash (and retain the commit links). |
closes pandas-dev#15277 Author: Albert Villanova del Moral <[email protected]> Closes pandas-dev#15278 from albertvillanova/fix-15277 and squashes the following commits: 1b594a9 [Albert Villanova del Moral] Fix tab indentation 631a2dc [Albert Villanova del Moral] Add whatsnew note d691954 [Albert Villanova del Moral] BUG: Fix downcast argument for DataFrame.fillna()