摘要: 按索引排序 import tushare as ts import pandas as pd data=ts.get_hist_data('600848') #默认索引升序 data=data.sort_index() #索引降序排序 data=data.sort_index(axis=1,asce 阅读全文
posted @ 2018-06-23 21:36 The_Chain 阅读(912) 评论(0) 推荐(0) 编辑
摘要: enumerate函数 date='20180623' price=['30.45','32.56','36.78','30.32'] date_arrary=[str(date+num) for num,_ in enumerate(price)] 阅读全文
posted @ 2018-06-23 15:45 The_Chain 阅读(97) 评论(0) 推荐(0) 编辑