This package is a place for Deephaven experimental features.

time_window(table, ts_col, window, bool_col)[source]

Creates a new table by applying a time window to the source table and adding a new Boolean column.

The value of the new Boolean column is set to false when the timestamp column value is older than the window from now or true otherwise. If the timestamp column value is null, the Boolean column value will be null as well. The result table ticks whenever the source table ticks, or modifies a row when it passes out of the window.

  • table (Table) – the source table

  • ts_col (str) – the timestamp column name

  • window (int) – the size of the window in nanoseconds

  • bool_col (str) – the name of the new Boolean column.

Return type



a new Table