File tree Expand file tree Collapse file tree
docs/source/user-guide/common-operations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,18 +150,3 @@ The ``fill_null()`` method replaces NULL values in specified columns with a prov
150150 df = df.fill_null(" missing" , subset = [" name" , " category" ])
151151
152152 The fill value will be cast to match each column's type. If casting fails for a column, that column remains unchanged.
153-
154- fill_nan
155- --------
156-
157- The ``fill_nan() `` method replaces NaN values in floating-point columns with a provided numeric value:
158-
159- .. code-block :: python
160-
161- # Fill all NaN values with 0 in numeric columns
162- df = df.fill_nan(0 )
163-
164- # Fill NaN values in specific numeric columns
165- df = df.fill_nan(99.9 , subset = [" price" , " score" ])
166-
167- This only works on floating-point columns (float32, float64). The fill value must be numeric (int or float).
You can’t perform that action at this time.
0 commit comments