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

modin.pandas.Series.abs¶

Series.abs()[source]¶

Return a Series with absolute numeric value of each element.

Return type:

Series

Examples

>>> ser = pd.Series([1, -2.29, 3, -4.77])
>>> ser
0    1.00
1   -2.29
2    3.00
3   -4.77
dtype: float64
Copy
>>> abs(ser)
0    1.00
1    2.29
2    3.00
3    4.77
dtype: float64
Copy