Brian Olsen
12/07/2022, 2:35 PM{"dtype" : "object"} to see if I was formatting something wrong. It still shows all strings in the connection though.Brian Olsen
12/07/2022, 2:36 PMBrian Olsen
12/07/2022, 2:37 PMEli Sigal
12/07/2022, 6:29 PMnumber_types = ("int64", "float64")
if current_type == "string":
# previous column values was of the string type, no sense to look further
return current_type
if dtype == object:
return "string"
if dtype in number_types and (not current_type or current_type in number_types):
return "number"
if dtype == "bool" and (not current_type or current_type == "boolean"):
return "boolean"
return "string"
now you know what to do 🙂