ENH/SQL: Allow 'dtype' argument in to_sql() to take dictionary including a default datatype #39013
Labels
Enhancement
Needs Discussion
Requires discussion from core team before further action
Needs Triage
Issue that has not been reviewed by a pandas team member
Related to #11886
Could we modify the dictionary interpretation in
to_sql()
so that the datatype specified by a key like'default'
would apply to all other columns not already specified in the dictionary? Or, alternatively, we could break this out to two different arguments: a dictionary for specific columns and a datatype for all the rest?Instead of choosing between specifying every column having a specific type and using one datatype for all columns, I need a hybrid of the two.
The text was updated successfully, but these errors were encountered: