Skip to content

Commit ca993a2

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

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
@@ -2270,16 +2270,16 @@ def combine(self, other, func, fill_value=None):
22702270
22712271
Combine the Series and `other` using `func` to perform elementwise
22722272
selection for combined Series.
2273-
`fill_value` is assumed when value is missing from one
2274-
of the two objects being combined at some index.
2273+
`fill_value` is assumed when value is missing at some index
2274+
from one of the two objects being combined .
22752275
22762276
Parameters
22772277
----------
22782278
other : Series or scalar
22792279
The value(s) to be combined with the `Series`.
22802280
func : function
2281-
Function that takes two scalars as inputs and returns a `bool`.
2282-
fill_value : scalar
2281+
Function that takes two scalars as inputs and returns an element.
2282+
fill_value : scalar, default None
22832283
The optional value to assume when an index is missing from
22842284
one Series or the other. The default specifies to use the
22852285
appropriate NaN value for the underlying dtype of the Series.
@@ -2310,8 +2310,6 @@ def combine(self, other, func, fill_value=None):
23102310
2 4
23112311
dtype: int64
23122312
2313-
`fill_value` is the _default comparison value_
2314-
in the function if a value is missing in the series.
23152313
>>> s1.combine(s2, lambda x1, x2: x1 if x1 > x2 else x2,
23162314
... fill_value=787)
23172315
0 1

0 commit comments

Comments
 (0)