pandas.Series.pow

pandas 3.1.1 · Series and accessors · method

Raise each value to its corresponding exponent.

Call syntax

Series.pow(other, level=None, fill_value=None, axis=0)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
other Required
Positional or keyword
object

Supply the second object or value used in the operation.

level Optional
Positional or keyword
Default None
int or name

Choose an index level by name or integer position.

fill_value Optional
Positional or keyword
Default None
scalar or None

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

axis Optional
Positional or keyword
Default 0
{0 or 'index'}

Choose which axis the operation acts on. The accepted axis labels depend on the receiver.

Returns

Series