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

pandas removed deprecated Series.iteritems(), DataFrame.iteritems(), use obj.items instead #147

Open
Xiaoshu-Zhao opened this issue Jun 26, 2023 · 1 comment · May be fixed by #155
Open

Comments

@Xiaoshu-Zhao
Copy link

pandas removed deprecated Series.iteritems(), DataFrame.iteritems() but in _data.py you still used iteritems. For example, in line 164 for t, v in time_window_end_series.iteritems(): please change it to items

@VladimirFokow
Copy link

VladimirFokow commented Sep 7, 2023

This is also the reason why the plot function with anomaly_tag="span" (the default value) produces AttributeError: 'Series' object has no attribute 'iteritems'

(because: anomaly=anomalies : pd.Series).

For example, the plot line here would now produce an error: https://adtk.readthedocs.io/en/stable/notebooks/demo.html#PersistAD

earthgecko added a commit to earthgecko/adtk that referenced this issue Jan 14, 2024
pandas removed deprecated Series.iteritems(), DataFrame.iteritems(), use obj.items instead arundo#147
IssueID 5224: Replace deprecated pandas.Series.iteritems
IssueID 5222: adtk - pandas error

- Replace deprecated pandas.Series.iteritems with pandas.Series.items

Modified:
src/adtk/data/_data.py
@earthgecko earthgecko linked a pull request Jan 14, 2024 that will close this issue
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 a pull request may close this issue.

2 participants