You are viewing documentation about an older version (1.21.0). View latest version

modin.pandas.DataFrame.pow

DataFrame.pow(other, axis='columns', level=None, fill_value=None)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/src/snowflake/snowpark/modin/pandas/dataframe.py#L1928-L1941)

Get exponential power of DataFrame and other, element-wise (binary operator pow).

Note

Native pandas doesn’t allow a ** b, where a is an integer and b is a negative integer. However, Snowpark pandas API allows it and return the correct result. For example, pd.DataFrame([5]).pow(-7) is allowed, whereas it will raise an exception in native pandas.

Language: English