mwtoews / surface-water-network

A Python package to create and analyze surface water networks.
https://mwtoews.github.io/surface-water-network/
BSD 3-Clause "New" or "Revised" License
28 stars 7 forks source link

Use items instead of iteritems #61

Closed mwtoews closed 2 years ago

mwtoews commented 2 years ago

iteritems() is deprecated since version 1.5.0, so use items() instead.

Also pd.Series(data, dtype=dtype) does not properly cast a dict to dtype, so use pd.Series(data).astype(dtype) instead.