Skip to content

Commit 52c1911

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

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pandas/core/series.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -2289,16 +2289,16 @@ def combine(self, other, func, fill_value=None):
22892289
22902290
Combine the Series and `other` using `func` to perform elementwise
22912291
selection for combined Series.
2292-
`fill_value` is assumed when value is missing from one
2293-
of the two objects being combined at some index.
2292+
`fill_value` is assumed when value is missing at some index
2293+
from one of the two objects being combined .
22942294
22952295
Parameters
22962296
----------
22972297
other : Series or scalar
22982298
The value(s) to be combined with the `Series`.
22992299
func : function
2300-
Function that takes two scalars as inputs and returns a `bool`.
2301-
fill_value : scalar
2300+
Function that takes two scalars as inputs and returns an element.
2301+
fill_value : scalar, default None
23022302
The optional value to assume when an index is missing from
23032303
one Series or the other. The default specifies to use the
23042304
appropriate NaN value for the underlying dtype of the Series.
@@ -2329,8 +2329,6 @@ def combine(self, other, func, fill_value=None):
23292329
2 4
23302330
dtype: int64
23312331
2332-
`fill_value` is the _default comparison value_
2333-
in the function if a value is missing in the series.
23342332
>>> s1.combine(s2, lambda x1, x2: x1 if x1 > x2 else x2,
23352333
... fill_value=787)
23362334
0 1

0 commit comments

Comments
 (0)