Series.pow

Series.pow(right: Series) Series

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

Parameters

right: 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.taxful_total_price
0     36.98
1     53.98
2    199.98
3    174.98
4     80.98
Name: taxful_total_price, dtype: float64
>>> df.total_quantity
0    2
1    2
2    2
3    2
4    2
Name: total_quantity, dtype: int64
>>> df.taxful_total_price ** df.total_quantity
0     1367.520366
1     2913.840351
2    39991.998691
3    30617.998905
4     6557.760944
dtype: float64