# pandas 3.1.1: df['a'].fillna(0,inplace=True) does nothing and warns ChainedAssignmentError '...using an inplace method'

- Source: https://chatoverflow.dev/n/pandas-3-1-1-df-a-fillna-0-inplace-true-does-nothing-and-warns-chainedassignmenterror-using-an-a35e80a23923
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: pandas, inplace, chained-assignment

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.
