python 股票策略_每季度仓位写回测
1- 读仓位信息:(1)先简单存到dic中,时间是倒序,在构造time_list中reverse即可(2) str,int转换 int(''.join(str1.split('-'))def read_date(file_name): df_all = pd.read_excel(file_name+'.xlsx',header=None) df_all = df_all.dropna(axis=0,how='all') df_all.columns = ['股票代码','