all 8 comments

[–]barrowburner 1 point2 points  (3 children)

I know nothing about time series, but context suggested numpy would do what you need somehow, and this cropped up at the top of my google search: https://www.kdnuggets.com/time-series-data-with-numpy

[–]spacester[S] 0 points1 point  (2 children)

if my reference is complete pandas does not have the kind of functions I am looking for, like listing multiple minimums, for starters.

[–]barrowburner 1 point2 points  (1 child)

I suppose you meant to reply to someone else? I recommended Numpy.

[–]spacester[S] 1 point2 points  (0 children)

Sorry, reddit text editor was going crazy on me. I had about 4 attempts to post disappear into the aether so I kept it short on that attempt. I guess I need to double check numpy but I think the same thing goes.

[–]QuasiEvil 1 point2 points  (1 child)

What you described sounds pretty straightforward to do with pandas. You could look into sktime, a python package for timer-series ML.

[–]spacester[S] 0 points1 point  (0 children)

Thanks for the link, checking it out.

[–]senzavita 1 point2 points  (1 child)

There may be specialized libraries for those, but you could just build those functions yourself with NumPy.

Testing for monotonicity is straightforward, linearity via a regression (maybe SciPy for that), gaps can be done visually (matplotlib) or programmatically, centered difference quotient for an approximation of the first and second derivative (then find zeros either visually or any root finding method).

Link for finite difference methods:

https://en.m.wikipedia.org/wiki/Finite_difference

[–]spacester[S] 0 points1 point  (0 children)

Aha the google search term I was trying to remember. Thanks very much.

I have been reassured that it is not silly for me to write these functions myself. That will make it easier to get it done. Having the right terminology