Skip to content

fix: datetime64 dtype compatibility for pandas >= 2.0#44

Open
Cerco01 wants to merge 1 commit into4GeeksAcademy:mainfrom
Cerco01:fix/datetime64-dtype-compatibility
Open

fix: datetime64 dtype compatibility for pandas >= 2.0#44
Cerco01 wants to merge 1 commit into4GeeksAcademy:mainfrom
Cerco01:fix/datetime64-dtype-compatibility

Conversation

@Cerco01
Copy link
Copy Markdown

@Cerco01 Cerco01 commented Mar 27, 2026

The test in exercise 04.1 fails with pandas 2.x and 3.x because the
DatetimeIndex dtype changed from datetime64[ns] to datetime64[us] in pandas 2.0.

Updated the test to accept both formats so it works regardless of the pandas version installed.

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.

1 participant