#add message
This commit is contained in:
parent
e1a1687af2
commit
e2a1c78aee
|
@ -416,7 +416,7 @@ def upload_history_data(request):
|
||||||
month = table.row_values(row)[2]
|
month = table.row_values(row)[2]
|
||||||
prcp = table.row_values(row)[3]
|
prcp = table.row_values(row)[3]
|
||||||
temp = table.row_values(row)[4]
|
temp = table.row_values(row)[4]
|
||||||
cur.execute('insert into prcp_m values (%s,%s,%s,%s,%s)' %(year,month,str(station),prcp,temp))
|
cur.execute('insert into prcp_m values (%s,%s,"%s",%s,%s)' %(year,month,station,prcp,temp))
|
||||||
# dataframe类型转换为IO缓冲区中的str类型
|
# dataframe类型转换为IO缓冲区中的str类型
|
||||||
# output = io.StringIO()
|
# output = io.StringIO()
|
||||||
# data[['year', 'mon', 'station', 'prcp', 'temp']].to_csv(output, sep='\t', index=False, header=False)
|
# data[['year', 'mon', 'station', 'prcp', 'temp']].to_csv(output, sep='\t', index=False, header=False)
|
||||||
|
|
Loading…
Reference in New Issue