Skip to content

Commit b5ce22c

Browse files
authored
DOC: Add details to DataFrame.combine_first docstring (#46060)
* DOC: Add details to DataFrame.combine_first docstring * fixup
1 parent ea0184e commit b5ce22c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/core/frame.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7448,7 +7448,11 @@ def combine_first(self, other: DataFrame) -> DataFrame:
74487448
74497449
Combine two DataFrame objects by filling null values in one DataFrame
74507450
with non-null values from other DataFrame. The row and column indexes
7451-
of the resulting DataFrame will be the union of the two.
7451+
of the resulting DataFrame will be the union of the two. The resulting
7452+
dataframe contains the 'first' dataframe values and overrides the
7453+
second one values where both first.loc[index, col] and
7454+
second.loc[index, col] are not missing values, upon calling
7455+
first.combine_first(second).
74527456
74537457
Parameters
74547458
----------

0 commit comments

Comments
 (0)