import sysimport tushare as tsimport numpy as npdata=ts.get_h_data('601066')print(data)#读出兴业银行7列数据date open high close low volume amount data.to_csv('E:/csv statistic/day/601066.csv') 把读取的股票数据存入某个内存空间中 #开始读某列数据 c,v=np.loadtxt('E:/cs
实例: import pymysql import pandas as pd import numpy as np from sqlalchemy import create_engine df = pd.DataFrame([[1,"Bob",0], [2,"Kim",1]],columns=["id","name","sex"]) df id name sex 0 1 Bob 0 1 2 Kim 1 f