Skip to content

temporian.EventSet.tan #

tan() -> EventSetOrNode

Calculates the tangent of an EventSet's features.

Can only be used on floating point features.

Example
>>> a = tp.event_set(
...     timestamps=[1, 2, 3, 4],
...     features={"M": [0, np.pi/4, np.pi/3, np.pi/6]},
... )
>>> a.tan()
indexes: ...
        timestamps: [1. 2. 3. 4.]
        'M': [0.     1.     1.7321 0.5774]
...

Returns:

Type Description
EventSetOrNode

EventSetOrNode with tangent of input features.