modin.pandas.DataFrame.abs¶
- DataFrame.abs()[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/src/snowflake/snowpark/modin/pandas/dataframe.py#L3043-L3045)¶
Return a DataFrame with absolute numeric value of each element.
- Return type:
Examples
>>> df = pd.DataFrame({'a': [1,-2,3], 'b': [-4.33, 5, 6]}) >>> df a b 0 1 -4.33 1 -2 5.00 2 3 6.00
>>> abs(df) a b 0 1 4.33 1 2 5.00 2 3 6.00