Home > database >  The small white great god answers
The small white great god answers

Time:10-21

The import tushare as ts
Df=ts get_stock_basics ()
Codes.=df index
Print (len (codes))
Df2=[[] for k in range (21)]
Print (df2)
For j in range (21) :
For I in range (0, len (codes) :
Df1=
Ts. Get_hist_data (codes [I], start='2019-03-01', end='2019-03-31')
Val=df1. P_change [j]
If val & gt; 5 or val & lt; - 5:
Df2 [j]. Append (df) name [I])
Print (df2)




Has been IndexErr or: index out of bounds for the great god for help
  • Related