Skip to content

Commit 4499e45

Browse files
committed
refactor: remove fill_nan method documentation from functions.rst
1 parent 924de28 commit 4499e45

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

docs/source/user-guide/common-operations/functions.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff 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).

0 commit comments

Comments
 (0)