pyprobe.analysis.time_series#

Analysis functions for manipulating time series data.

Functions

align_data(result1, result2, column1, column2)

Align the data of two Result objects from the cross-correlation of two columns.

align_data(result1, result2, column1, column2)#

Align the data of two Result objects from the cross-correlation of two columns.

The date column of result2 is shifted to best align column2 with column1 from result1.

Parameters:
  • result1 (Result) – The first Result object (reference).

  • result2 (Result) – The second Result object (to be shifted).

  • column1 (str) – The column name in the first Result object to align on.

  • column2 (str) – The column name in the second Result object to align on.

Returns:

The two Result objects, with the second one shifted.

Return type:

Tuple[Result, Result]