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

AttributeError: 'DatetimeIndex' object has no attribute 'get_duplicates' #6

Open
kongzue opened this issue Feb 21, 2023 · 3 comments
Open

Comments

@kongzue
Copy link

kongzue commented Feb 21, 2023

An error has occurred and I need help:

LSTM-Wind-Speed-Forecasting-master/LSTM-Wind-Speed-Forecasting-master/cnn.py", line 50, in drop_duplicates
    print("Number of duplicates: {}".format(len(df.index.get_duplicates())))
AttributeError: 'DatetimeIndex' object has no attribute 'get_duplicates'
@fengjiqiang
Copy link
Owner

可能是pandas的版本问题 这个api更新了 可以去查一下文档 https://pypandas.cn/docs/reference.html

@kongzue
Copy link
Author

kongzue commented Feb 22, 2023 via email

@fengjiqiang
Copy link
Owner

时间太久忘记了 你可以用现有的api去实现这个小功能

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

No branches or pull requests

2 participants