w3resource

Pandas Series: rpow() function

Exponential power of Pandas series

The rpow() function is used to get exponential power of series and other, element-wise (binary operator rpow).

Syntax:

Series.rpow(self, other, level=None, fill_value=None, axis=0)[source]
Pandas Series rpow() function

Parameters:

Name Description Type/Default Value Required / Optional
other   Series or scalar value Required
fill_value Fill existing missing (NaN) values, and any new element needed for successful Series alignment, with this value before computation. If data in both corresponding Series locations is missing the result will be missing. None or float value
Default Value: None (NaN)
Required
level Broadcast across a level, matching Index values on the passed MultiIndex level. int or name Required

Returns: Series
The result of the operation.

Example:


Download the above Notebook from here.



Inviting useful, relevant, well-written and unique guest posts