jamalsenouci / causalimpact

Python port of CausalImpact R library
Apache License 2.0
262 stars 62 forks source link

Fix outdated pandas function #50

Closed causalkayak closed 2 months ago

causalkayak commented 7 months ago

As per issue #48, is_datetime_or_timedelta_dtype no longer exists in the pandas module.

pandas.api.types.is_datetime64_dtype seems to achieve the desired result.