You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code produces the expected result, where all columns under the 'b' index are filled with 0s and all columns under the 'c' index are filled with 100s, but it unexpectedly raises a "/lib/python3.9/site-packages/pandas/core/frame.py:5176: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame" warning.
This warning is NOT raised if I fully specify the column index:
But this is too verbose. The first code segment is preferred
The text was updated successfully, but these errors were encountered:
Ponteaus
changed the title
fillna(value=[partial-multi-index)
fillna(value=[partial-multi-index]) raises "A value is trying to be set on a copy of a slice from a DataFrame" warning
Feb 4, 2022
This code produces the expected result, where all columns under the 'b' index are filled with 0s and all columns under the 'c' index are filled with 100s, but it unexpectedly raises a "/lib/python3.9/site-packages/pandas/core/frame.py:5176: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame" warning.
This warning is NOT raised if I fully specify the column index:
But this is too verbose. The first code segment is preferred
The text was updated successfully, but these errors were encountered: