TimeFrame.with_df

TimeFrame.with_df(new_df)[source]

Return a new TimeFrame with a new DataFrame, checking the integrity of the time values hasn’t been compromised between the old and new TimeFrame.

Parameters:

new_df (DataFrame) – The new Polars DataFrame to set as the new time series data.

Return type:

Self