safety-analytics-mapping / pysqldb3

Python3 version of pysqldb portion of ris library
1 stars 1 forks source link

FIX - empty column datatype in csv import #59

Closed shostetter closed 7 months ago

shostetter commented 7 months ago

When importing data from csv (csv_to_table/bulk) if there are empty columns pandas defaults them to Int datatype, but often this creates issues when merging or updating if the field isnt really always null, but really just very sparsely populated. This identifies fields with this condition and sets the database datatype to varchar.

Notes: