zrnsm / pyculiarity

A Python port of Twitter's AnomalyDetection R Package
GNU General Public License v3.0
365 stars 146 forks source link

AttributeError: module 'pandas' has no attribute 'Int64Index' #45

Open jxplus opened 6 months ago

jxplus commented 6 months ago

python 3.11 pandas 2.2.2

when run demo, then error:

Traceback (most recent call last): File "D:\workspaces\python_pros\timeSeries1\src\edm\breakoutDetect1.py", line 12, in results = detect_ts(df, max_anoms=0.007, direction='both') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Users\configs\pythonenv\Lib\site-packages\pyculiarity\detect_ts.py", line 220, in detect_ts s_h_esd_timestamps = detect_anoms(all_data[i], k=max_anoms, alpha=alpha, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Users\configs\pythonenv\Lib\site-packages\pyculiarity\detect_anoms.py", line 58, in detect_anoms if not isinstance(data.index, ps.Int64Index): ^^^^^^^^^^^^^ AttributeError: module 'pandas' has no attribute 'Int64Index'