lisa.datautils.series_derivate#
- lisa.datautils.series_derivate(y, x=None, order=1)[source]#
Compute a derivative of a
pandas.Series
with respect to another series.- Returns:
A series of dy/dx, where x is either the index of y or another series.
- Parameters:
y (pandas.DataFrame) – Series with the data to derivate.
x (pandas.DataFrame or None) – Series with the x data. If
None
, the index of y will be used. Note that y and x are expected to have the same index.order (int) – Order of the derivative (1 is speed, 2 is acceleration etc).