Function lag

Source
pub fn lag(
    col: impl Into<Column>,
    offset: Option<impl Into<Column>>,
    default: Option<impl Into<Column>>,
) -> Column
Expand description

Returns the value that os offset rows before the current row, and default is there is less than offset rows before the current row