BUG: Update Values from MultiIndex Dataframe after using loc is not applied correctly #47867
Closed
2 of 3 tasks
Labels
Bug
Indexing
Related to indexing on series/frames, not to indexes themselves
MultiIndex
Regression
Functionality that used to work in a prior pandas version
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
In Pandas 1.4.x the last line is not showing the change in the column c and the values still being 0.
When I call the column c as DataFrame I get the correct values
Expected Behavior
On Pandas 1.3.5 I get
Installed Versions
INSTALLED VERSIONS
commit : 66e3805
python : 3.8.12.final.0
python-bits : 64
OS : Windows
OS-release : 7
Version : 6.1.7601
machine : AMD64
processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : Spanish_Chile.1252
pandas : 1.3.5
numpy : 1.23.1
pytz : 2022.1
dateutil : 2.8.2
pip : 22.2
setuptools : 59.8.0
Cython : None
pytest : None
hypothesis : None
...
xarray : None
xlrd : 2.0.1
xlwt : None
numba : None
The text was updated successfully, but these errors were encountered: