Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to account for various different array types #876

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

swotai
Copy link
Collaborator

@swotai swotai commented Jul 10, 2024

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.

  • Bug fix

How Has This Been Tested?

pytest local passed. Github action test passed workflow run

Function can now properly handle np.ndarray, pd.series, pd.datetimeindex
@swotai swotai requested a review from edwinnglabs July 10, 2024 15:07
@edwinnglabs edwinnglabs merged commit 08ee565 into dev Jul 10, 2024
5 checks passed
@edwinnglabs edwinnglabs deleted the 871-fit-method-fail-for-timezone-aware-timeseries branch July 10, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fit method fail for Timezone aware timeseries
2 participants