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

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:

DataFrame

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
Copy
>>> abs(df)
   a     b
0  1  4.33
1  2  5.00
2  3  6.00
Copy
语言: 中文