import numpy as np
import pandas as pd
data_csv = pd.read_table('c:\\399300_3.csv',sep=',')
print("data_csv:")
print(data_csv)
第一个1是索引值 第二个 是要的收盘价
data_csv.ix[1][1]
import numpy as np
import pandas as pd
data_csv = pd.read_table('c:\\399300_3.csv',sep=',')
print("data_csv:")
print(data_csv)
test = 10000 / data_csv.close
test.sum()
import tushare as ts
df = ts.get_hist_data('000625', ktype='M')
#直接保存
df.to_csv('c:/000625.csv')
#选择保存
df.to_csv('c:/000625_close.csv',columns=['close'])