timeatlas.time_series.TimeSeries.apply

TimeSeries.apply(func, ts: Optional[timeatlas.time_series.time_series.TimeSeries] = None) → timeatlas.time_series.time_series.TimeSeries

Wrapper around the Pandas apply function

Parameters
  • func – function Python function or NumPy ufunc to apply. If ts is given as param, func must have two params in the form of f(x,y)

  • ts – TimeSeries The second TimeSeries if you want to make an operation on two time series

Returns

TimeSeries