temporian.EventSet.log #
log() -> EventSetOrNode
Calculates the natural logarithm 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": [np.e, 1., 2., 10., -1.]},
... )
>>> a.log()
indexes: ...
timestamps: [1. 2. 3. 4. 5.]
'M': [1. 0. 0.6931 2.3026 nan]
...
Returns:
Type | Description |
---|---|
EventSetOrNode
|
EventSetOr with logarithm of input features. |