BUG: fillna with inplace does not work with multiple columns selection by loc #14858
Labels
Indexing
Related to indexing on series/frames, not to indexes themselves
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Usage Question
Code Sample, a copy-pastable example if possible
Output:
Problem description
It's expected to modify the Nan to -1 but it does NOT.
Please see the following comparisons.
Comparison (1)
On contrary, the following codes behave as expected.
(The only difference is selection by iloc or by loc)
Output:
Comparison (2)
When only one column is selected with loc, it behaves properly.
Output:
Expected Output of the first code sample
Output of
pd.show_versions()
pandas: 0.19.1
nose: None
pip: 9.0.1
setuptools: 27.2.0
Cython: None
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: