ktk.TimeSeries.copy

ktk.TimeSeries.copy#

TimeSeries.copy(*, copy_time=True, copy_data=True, copy_time_info=True, copy_data_info=True, copy_events=True)[source]#

Deep copy of a TimeSeries.

Parameters:
  • copy_time (bool) – Optional. True to copy time to the new TimeSeries, False to keep the time attribute empty. Default is True.

  • copy_data (bool) – Optional. True to copy data to the new TimeSeries, False to keep the data attribute empty. Default is True.

  • copy_time_info (bool) – Optional. True to copy time_info to the new TimeSeries, False to keep the time_info attribute empty. Default is True.

  • copy_data_info (bool) – Optional. True to copy data_into to the new TimeSeries, False to keep the data_info attribute empty. Default is True.

  • copy_events (bool) – Optional. True to copy events to the new TimeSeries, False to keep the events attribute empty. Default is True.

Returns:

A deep copy of the TimeSeries.

Return type:

TimeSeries