cudf.Series.asin#
- Series.asin()#
Get Trigonometric inverse sine, element-wise.
The inverse of sine so that, if y = x.sin(), then x = y.asin()
- Returns
- DataFrame/Series/Index
Result of the trigonometric operation.
Examples
>>> import cudf >>> ser = cudf.Series([-1, 0, 1, 0.32434, 0.5]) >>> ser.asin() 0 -1.570796 1 0.000000 2 1.570796 3 0.330314 4 0.523599 dtype: float64
asin operation on DataFrame:
>>> df = cudf.DataFrame({'first': [-1, 0, 0.5], ... 'second': [0.234, 0.3, 0.1]}) >>> df first second 0 -1.0 0.234 1 0.0 0.300 2 0.5 0.100 >>> df.asin() first second 0 -1.570796 0.236190 1 0.000000 0.304693 2 0.523599 0.100167
asin operation on Index:
>>> index = cudf.Index([-1, 0.4, 1, 0.3]) >>> index Float64Index([-1.0, 0.4, 1.0, 0.3], dtype='float64') >>> index.asin() Float64Index([-1.5707963267948966, 0.41151684606748806, 1.5707963267948966, 0.3046926540153975], dtype='float64')