modin.pandas.DataFrame.abs

DataFrame.abs() Self[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.33.0/.tox/docs/lib/python3.9/site-packages/modin/pandas/base.py#L659-L664)

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
Language: English