captest.capdata.CapData.filter_time

CapData.filter_time(start=None, end=None, drop=False, days=None, test_date=None, custom_name=None)

Select data for a specified time period.

Parameters:
  • start (str or pd.Timestamp or None, default None) – Start date for data to be returned.

  • end (str or pd.Timestamp or None, default None) – End date for data to be returned.

  • drop (bool, default False) – With start+end, remove the window instead of keeping it.

  • days (int or None, default None) – Days in the time window.

  • test_date (str or pd.Timestamp or None, default None) – Center of a symmetric days-wide window.

  • custom_name (str, default None) – Optional display label for the recorded filter step.

Notes

The wrap_year parameter from the previous implementation has been removed. Year-end-spanning data is now handled by an auto-wrap step at CapTest load time (see CapTest.auto_wrap_sim).