@@ -0,0 +1,737 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0ACreated on Tue Jun  6 09:28:17 2017%0A%0A@author: Administrator%0A%22%22%22%0A%0Aimport pandas as pd%0Aimport ToolModule as tm%0A#import datetime%0Aimport FilterDataModule as fd%0A%0Ag_all_data = fd.all_data%0A%0A%0Adef p_change_sum(x):%0A        p_change = x.p_change+100%0A        ans = 1%0A        for p in p_change:%0A            ans = ans * p%0A        return p%0A    %0Adef filterDate(date):%0A    dateNum = tm.dateToNum(date)%0A    return dateNum %3E= startDate and dateNum %3C= endDate%0A%0AstartDate = 20170526%0AendDate = 20170601%0Ap_change_min = 102%0A%0Adata1 = g_all_data%5Bg_all_data.npr %3E 0 %5D#%E5%87%80%E5%88%A9%E6%B6%A6%0Adata2 = data1%5Bdata1.date.apply(filterDate)%5D%0Adata3 = data2.groupby('code').apply(p_change_sum)%0Adata4 = data3%5Bdata3 %3E p_change_min%5D%0A%0Acodes = data4.index%0Aprint(codes)%0A

add select.py