Skip to content

Commit c9d61b5

Browse files
FIX integer column names for older sqlalchemy version GH6340, GH7330
1 parent 9f7d41b commit c9d61b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/sql.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def insert(self):
567567
ins = self.insert_statement()
568568
data_list = []
569569
temp = self.insert_data()
570-
keys = temp.columns
570+
keys = list(map(str, temp.columns))
571571

572572
for t in temp.itertuples():
573573
data = dict((k, self.maybe_asscalar(v))

0 commit comments

Comments
 (0)