USEPA / harmonize-wq

Standardize, clean, and wrangle Water Quality Portal data into more analytic-ready formats
https://usepa.github.io/harmonize-wq/
MIT License
12 stars 5 forks source link

Check for duplicate axis label when coercing measure #47

Open jbousquin opened 11 months ago

jbousquin commented 11 months ago

Specifically the error is: ValueError: cannot reindex on an axis with duplicate labels

And comes up for GOM Phosphorus in _coerce_measure(): df_out[self.out_col] = meas_s

It occurs where geopandas is trying to re-index, this geopandas version has a relevant deprecation warning: ~lib\site-packages\geopandas\geodataframe.py:1443: FutureWarning: reindexing with a non-unique Index is deprecated and will raise in a future version.