Skip to content

Commit 81bb149

Browse files
authored
Update series.py
1 parent 7eef78d commit 81bb149

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pandas/core/series.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ def combine(self, other, func, fill_value=None):
22922292
See Also
22932293
--------
22942294
Series.combine_first : Combine Series values, choosing the calling
2295-
Series' values first
2295+
Series' values first
22962296
22972297
Examples
22982298
--------
@@ -2310,16 +2310,15 @@ def combine(self, other, func, fill_value=None):
23102310
2 4
23112311
dtype: int64
23122312
2313-
When fill_value is given:-
2313+
`fill_value` is the _default comparison value_
2314+
in the function if a value is missing in the series.
23142315
>>> s1.combine(s2, lambda x1, x2: x1 if x1 > x2 else x2,
2315-
... fill_value = 787)
2316+
... fill_value=787)
23162317
0 1
23172318
1 3
23182319
2 787
23192320
dtype: int64
23202321
2321-
If `func` doesn't get a value from either of the two Series,
2322-
fill_value` is used.
23232322
"""
23242323
if fill_value is None:
23252324
fill_value = na_value_for_dtype(self.dtype, compat=False)

0 commit comments

Comments
 (0)