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

modin.pandas.Series.abs

Series.abs()[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.22.1/../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/modin/pandas/base.py#L591-L596)

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
语言: 中文