candy.loc[:, ‘Q3: AGE’].fillna(‘unknown’, inplace = True) C:UserssyedrAppDataLocalTempipykernel_107763449388756.py:10: SettingWithCopyWarning: A value is trying to be set on a copy of a slice f…
candy.loc[:, ‘Q3: AGE’].fillna(‘unknown’, inplace = True)
C:UserssyedrAppDataLocalTempipykernel_107763449388756.py:10: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
candy.loc[:, ‘Q3: AGE’].fillna(‘unknown’, inplace = True)
OR