Hive-Systems / pyfair

Factor Analysis of Information Risk (FAIR) model written in Python. Managed and maintained by Hive Systems
https://www.hivesystems.com
MIT License
88 stars 44 forks source link

Futurewarning in tree_graph.py #45

Closed gymzombie closed 4 months ago

gymzombie commented 1 year ago

Getting this error when doing a to_html report:

pyfair\report\tree_graph.py:169: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.
  in data.iteritems()
pyfair\report\tree_graph.py:145: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.
  in data.iteritems()
yasirhamza commented 1 year ago

It's now an issue, the code throws the following error: AttributeError: 'Series' object has no attribute 'iteritems'