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

modin.pandas.DataFrame.abs¶

DataFrame.abs()[source]¶

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