lisa.datautils.df_window_signals#
- lisa.datautils.df_window_signals(df, window, signals, compress_init=False, clip_window=True)[source]#
Similar to
df_window()withmethod='pre'but guarantees that each signal will have a values at the beginning of the window.- Parameters:
window (tuple(object)) – two-tuple of index values for the start and end of the region to select.
signals (list(SignalDesc)) – List of
SignalDescdescribing the signals to fixup.compress_init (bool) – When
False, the timestamps of the init value of signals (right before the window) are preserved. IfTrue, they are changed into values as close as possible to the beginning of the window.clip_window – See
df_window()
See also