pandas.Series.combine

pandas 3.1.1 · Series and accessors · method

Combine aligned objects using a callable. DataFrame passes columns to the callable and Series passes individual values.

Call syntax

Series.combine(other, func, fill_value=None)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
other Required
Positional or keyword
Series or scalar

Supply the second object or value used in the operation.

func Required
Positional or keyword
function

Supply a supported operation name or a callable, depending on this API.

fill_value Optional
Positional or keyword
Default None
scalar

Supply a value to use in place of a missing position.

Returns

Series