uber / orbit

A Python package for Bayesian forecasting with object-oriented design and probabilistic models under the hood.
https://orbit-ml.readthedocs.io/en/stable/
Other
1.85k stars 132 forks source link

Fix to account for various different array types #876

Closed swotai closed 1 month ago

swotai commented 1 month ago

Description

To allow is_ordered_datetime() to handle tz-aware vectors, use pandas.to_series().diff(), and ensure function to properly handle np.ndarray, pd.series, pd.datetimeindex.

Fixes #871

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

pytest local passed. Github action test passed workflow run