Skip to content

temporian.EventSet.sin #

sin() -> EventSetOrNode

Calculates the sine of an EventSet's features.

Can only be used on floating point features.

Example
>>> a = tp.event_set(
...     timestamps=[1, 2, 3, 4, 5],
...     features={"M": [0, np.pi/2, np.pi, 3*np.pi/2, 2*np.pi]},
... )
>>> a.sin()
indexes: ...
        timestamps: [1. 2. 3. 4. 5.]
        'M': [ 0.0000e+00  1.0000e+00  1.2246e-16 -1.0000e+00 -2.4493e-16]
...

Returns:

Type Description
EventSetOrNode

EventSetOrNode with sine of input features.