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

AttributeError: 'float' object has no attribute 'upper' #76

Open jbousquin opened 2 months ago

jbousquin commented 2 months ago

From reviewer: attribute errors for harmonize_all(df, errors='ignore'): AttributeError: 'float' object has no attribute 'upper' (these attribute errors happened a few times in the other demos, too.)

jbousquin commented 2 months ago

Possible repeat of #64, which leads me to believe dependencies aren't being resolved properly. Bringing pinned versions up to date (#26 ) may help resolve. Updated pyproject.toml to sync with requirements (b125f65631d2395dcf3c15a3b3444afdaafd7389). Sounds like it could be a numpy.nan for a text field (trying to uppercase an NAN), this was seen in domains.re_case() and is the reason for the try/except there.