oturns / geosnap

The Geospatial Neighborhood Analysis Package
https://oturns.github.io/geosnap-guide
BSD 3-Clause "New" or "Revised" License
241 stars 32 forks source link

AttributeError: 'Series' object has no attribute 'iteritems' #368

Closed jfhawkin closed 11 months ago

jfhawkin commented 1 year ago

geosnap\analyze\dynamics.py uses for i, cluster in gdf[cluster_col].astype(int).iteritems(): at line 345.

This seems to be a simple deprecation fix. Change it to for i, cluster in gdf[cluster_col].astype(int).items(): based on https://pandas.pydata.org/pandas-docs/version/1.5/reference/api/pandas.Series.iteritems.html

knaaptime commented 1 year ago

nice, thanks

knaaptime commented 11 months ago

resolved in v.0.12.0