featurebyte.EventViewColumn.lag¶
Description¶
Lag is a transform that enables the retrieval of the preceding value associated with a particular entity in a view.
This makes it feasible to compute essential features, such as those that depend on inter-event time and the proximity to the previous point.
Parameters¶
- entity_columns: Union[str, List[str]]
Entity columns used when retrieving the lag value. - offset: int
default: 1
The number of rows backward from which to retrieve a value.
Returns¶
- LagColumnTypeT
Raises¶
- ValueError
If a lag operation has already been applied to the column.