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

modin.pandas.Series.abs

Series.abs()[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/src/snowflake/snowpark/modin/pandas/series.py#L354-L380)

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