Skip to content

Commit 502cd9c

Browse files
committed
Address review comments about DataFrame.fill_null
1 parent 7d84cc3 commit 502cd9c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

spec/API_specification/dataframe_api/dataframe_object.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -782,11 +782,10 @@ def fill_null(
782782
Fill null values with the given fill value.
783783
784784
This method can only be used if all columns that are to be filled are
785-
of the same dtype kind (e.g., all floating-point, all integer, all
786-
string or all datetime dtypes). If that is not the case, it is not
787-
possible to use a single Python scalar type that matches the dtype of
788-
all columns to which ``fill_null`` is being applied, and hence an
789-
exception will be raised.
785+
of the same dtype (e.g., all of ``Float64`` or all of string dtype).
786+
If that is not the case, it is not possible to use a single Python
787+
scalar type that matches the dtype of all columns to which
788+
``fill_null`` is being applied, and hence an exception will be raised.
790789
791790
Parameters
792791
----------
@@ -795,7 +794,7 @@ def fill_null(
795794
Must be of the Python scalar type matching the dtype(s) of the dataframe.
796795
column_names : list[str] | None
797796
A list of column names for which to replace nulls with the given
798-
scalar value.
797+
scalar value. If ``None``, nulls will be replaced in all columns.
799798
800799
Raises
801800
------

0 commit comments

Comments
 (0)