traja-team / traja

Python tools for spatial trajectory and time-series data analysis
https://traja.readthedocs.io
MIT License
100 stars 25 forks source link

import error of is_datetime_or_timedelta from pandas #103

Open miaowangcissy opened 4 months ago

miaowangcissy commented 4 months ago

Describe the bug

I'm trying to import traja in my python env with pandas == 2.2.2, but it shows the import error:"ImportError: cannot import name 'is_datetime_or_timedelta_dtype' from 'pandas.core.dtypes.common' (/miniconda/envs/datalad/lib/python3.12/site-packages/pandas/core/dtypes/common.py)"

It appears that is_datetime_or_timedelta_dtype has been removed from Pandas as of version 2.1.0. While we can resolve this issue by installing an earlier version of Pandas, it would be beneficial for traja to maintain compatibility with future versions of Pandas.

senis000 commented 2 months ago

Same issue here

noahpettit commented 2 months ago

Same issue here as well.