temporian.EventSet.abs #
abs() -> EventSetOrNode
Gets the absolute value of an EventSet
's
features.
Example
>>> a = tp.event_set(
... timestamps=[1, 2, 3],
... features={"M":[np.nan, -1., 2.], "N": [-1, -3, 5]},
... )
>>> a.abs()
indexes: ...
'M': [nan 1. 2.]
'N': [1 3 5]
...
Returns:
Type | Description |
---|---|
EventSetOrNode
|
EventSet with positive valued features. |