Python導出數據(CSV格式)

Python導出csv數據 to_csv(filePath,sep=",",index=TRUE,header=TRUE) sep分隔符,默認爲逗號(「,」) index是否導出行序號,默認爲TRUE header是否導出列名,默認爲TRUE 從Tushare庫獲取股票數據,並導出 import tushare as ts df=ts.sh_margins(start='2015-01-01',
相關文章
相關標籤/搜索