Commit f45e1013 authored by 张彦钊's avatar 张彦钊

multi hot insert database

parent c527f59a
......@@ -58,7 +58,7 @@ def multi():
elif i + n > df.shape[0]:
temp = df.iloc[i:]
else:
temp = df.loc[i:i + n]
temp = df.iloc[i:i + n]
pd.io.sql.to_sql(temp, "cid_level2", yconnect, schema='jerry_test', if_exists='append', index=False)
print("insert done")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment