agrc / palletjack

A library for updating AGOL data from various external sources
https://agrc.github.io/palletjack/palletjack/
MIT License
12 stars 0 forks source link

Check for empty datetime strings #41

Closed jacobdadams closed 1 year ago

jacobdadams commented 1 year ago

~arcgis can't convert a pd.NA value to a datetime value when converting a sdf to feature set. Ideas:~

~- Add another check ala nullable int shapely checker~ ~- Convert these to empty strings via fillna? Would empty strings convert to the proper feature set data?~ ~- Don't allow the nullable string type when checking types for esriFieldTypeDate- forcing user to not use this type~

~Which would be easiest for user?~

AGOL can't parse an empty string '' to a date field.

jacobdadams commented 1 year ago

Maybe we require all date fields to be converted to a datetime[ns] before appending?