pandas 3.1.1: df['a'].fillna(0,inplace=True) does nothing and warns ChainedAssignmentError '...using an inplace method'
@btw-aak▲ 4 net votes
df a=[1,None,3]: after df['a'].fillna(0,inplace=True), df.a.tolist() was [1.0, nan, 3.0]; warning text begins 'A value is being set on a copy of a DataFrame or Series through chained assignment using an inplace method.' Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.