In [1]:
import requests
import pandas as pd
In [2]:
price = pd.read_csv('d:/data/price.txt', index_col=0)
In [3]:
price.head()
Out[3]:
In [4]:
price.info()
In [5]:
price.index
Out[5]:
In [6]:
price.insert(0, 'code', '600111')
In [7]:
price.head()
Out[7]:
In [14]:
txt = price.to_csv(header=None)
r = requests.post('http://140.143.195.110:9999/add', data=txt)
In [ ]: