AllenDowney / ModSimPy

Text and supporting code for Modeling and Simulation in Python
https://allendowney.github.io/ModSimPy/
MIT License
823 stars 1.76k forks source link

Deprecated use of `pd.Series.iteritems` #67

Closed rodigu closed 1 year ago

rodigu commented 1 year ago

FutureWarning message:

/content/modsim.py:621: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.
  for label, value in res.iteritems():

pd.Series.iteritems has been deprecated since pandas 1.5.0.

pd.Series.items is the recommended alternative: https://pandas.pydata.org/pandas-docs/version/1.5/reference/api/pandas.Series.items.html#pandas.Series.items

AllenDowney commented 1 year ago

This should be resolved now. Thank you!