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.89k stars 135 forks source link

Fix to account for various different array types #876

Closed swotai closed 4 months ago

swotai commented 4 months 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