Open Tristanjmeyers opened 1 year ago
Hi @Tristanjmeyers,
This features is already implemented in TimeSeries.slice_intersect()
(doc), you'll have to call it several times if you have more than two series.
I like the idea of offering this feature as a data-transformer so that it can be included in a Pipeline
, WDYT @dennisbader ?
Hello! I think it would be incredibly valuable to have a function that finds the intersection of a list of time series. This would be something akin to xarray's "align" function, which finds the intersection across a list of variables.
I commonly find I have to manually convert my TimeSerries back to an xarray data array, run an align, then convert back to a TimeSeries. For instance:
So something like:
if the intersection doesn't exist, it could raise a warning like:
Warning: there is no overlapping times between the time series
.Another option would also be an option for "stack" to take an argument to do this intersection:
And finally, if this could be added in the pipeline API, that would be excellent!
Apologies if these features already exists! I am new to the package, but I couldn't find an example or something like this in the API. I am loving it so far though!