Skip to content

Commit 2ee7f4a

Browse files
committed
Update series.py
1 parent de2a6e2 commit 2ee7f4a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pandas/core/series.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,7 +2311,7 @@ def combine(self, other, func, fill_value=None):
23112311
See Also
23122312
--------
23132313
Series.combine_first : Combine Series values, choosing the calling
2314-
Series' values first
2314+
Series' values first
23152315
23162316
Examples
23172317
--------
@@ -2329,16 +2329,15 @@ def combine(self, other, func, fill_value=None):
23292329
2 4
23302330
dtype: int64
23312331
2332-
When fill_value is given:-
2332+
`fill_value` is the _default comparison value_
2333+
in the function if a value is missing in the series.
23332334
>>> s1.combine(s2, lambda x1, x2: x1 if x1 > x2 else x2,
2334-
... fill_value = 787)
2335+
... fill_value=787)
23352336
0 1
23362337
1 3
23372338
2 787
23382339
dtype: int64
23392340
2340-
If `func` doesn't get a value from either of the two Series,
2341-
fill_value` is used.
23422341
"""
23432342
if fill_value is None:
23442343
fill_value = na_value_for_dtype(self.dtype, compat=False)

0 commit comments

Comments
 (0)