stupidb.functions.navigation¶
Navigation and simple window function interface and implementation.
Classes
|
|
|
Base class for first and last navigation functions. |
|
|
|
|
|
|
|
Base class for shifting operations. |
|
Compute the nth row in a window frame. |
- class stupidb.functions.navigation.FirstLast(inputs1)[source]¶
Base class for first and last navigation functions.
The difference between first and last is where the search for non NULL values starts.
This aggregation keeps a cache of computed aggregations keyed by the begin and end of the range it’s been queried over.
- class stupidb.functions.navigation.Lag(inputs, offsets, defaults)[source]¶
- offset_operation(b, /)¶
Same as a - b.
- class stupidb.functions.navigation.Lead(inputs, offsets, defaults)[source]¶
- offset_operation(b, /)¶
Same as a + b.
- class stupidb.functions.navigation.LeadLag(inputs, offsets, defaults)[source]¶
Base class for shifting operations.
This class tracks the index of the current row that is being computed.
- class stupidb.functions.navigation.Nth(inputs1, inputs2)[source]¶
Compute the nth row in a window frame.
Modules