Window function: returns the value that is offset rows before the current row, with default value.
The column name or Column to compute lag for
The number of rows to look back
Default value when the offset is beyond the window
A Column representing the lag value
Window function: returns the value that is offset rows before the current row, with default value and null handling.
The column name or Column to compute lag for
The number of rows to look back
Default value when the offset is beyond the window
Whether to skip null values
A Column representing the lag value
Window function: returns the value that is
offsetrows before the current row.