-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
pandas removed deprecated Series.iteritems()
, DataFrame.iteritems()
, use obj.items
instead
#147
Comments
This is also the reason why the (because: For example, the s = pd.read_csv('./data/price_short.csv', index_col="Time", parse_dates=True, squeeze=True)
s = validate_series(s)
from adtk.detector import PersistAD
persist_ad = PersistAD(c=3.0, side='positive')
anomalies = persist_ad.fit_detect(s)
plot(s, anomaly=anomalies, ts_linewidth=1, ts_markersize=3, anomaly_color='red'); |
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
How do I fix this issue, the error is indicating in _plot_anomaly function in _visualization.py |
pandas removed deprecated
Series.iteritems()
,DataFrame.iteritems()
but in_data.py
you still usediteritems
. For example, in line 164for t, v in time_window_end_series.iteritems():
please change it toitems
The text was updated successfully, but these errors were encountered: