Series.rpow

Series.rpow(left: Series) Series

Return exponential power of series and left, element-wise (binary operator pow).

Parameters

left: opensearch_py_ml.Series

Returns

opensearch_py_ml.Series

Examples

>>> from tests import OPENSEARCH_TEST_CLIENT
>>> df = oml.DataFrame(OPENSEARCH_TEST_CLIENT, 'ecommerce').head(5)
>>> df.total_quantity
0    2
1    2
2    2
3    2
4    2
Name: total_quantity, dtype: int64
>>> np.int_(2) ** df.total_quantity
0    4.0
1    4.0
2    4.0
3    4.0
4    4.0
Name: total_quantity, dtype: float64