Quick update to datasources.py to overwrite the as-received geom_ids (which were mangled, probably in Excel, at some point) with freshly calculated geom_ids based on PARCEL_IDs.
Also, I didn't make these changes in utils.py but a couple things caught my eye there.
Why does geom_id_to_parcel_id return a DF but parcel_id_to_geom_id returns a Series? One or the other of the function names is misleading.
Another way to write parcel_id_to_geom_id would be like the following:
I'm not sure this would work exactly as written (because I'm not sure whether orca tables have a .index attribute like pandas DataFrames do) but something like this seems cleaner than the way this function is written now.
Quick update to datasources.py to overwrite the as-received
geom_id
s (which were mangled, probably in Excel, at some point) with freshly calculatedgeom_id
s based onPARCEL_ID
s.Also, I didn't make these changes in utils.py but a couple things caught my eye there.
I'm not sure this would work exactly as written (because I'm not sure whether
orca
tables have a.index
attribute likepandas
DataFrames do) but something like this seems cleaner than the way this function is written now.