从此告别烦人的print大法
A | |
1 | =T("stock.xlsx") |
2 | =A1.sort(DT) |
3 | =A2.group(CODE;~.group@i(CL< CL[-1]).max(~.len()):max_increase_days) |
只要三行
A | |
1 | =T("stock.xlsx") |
2 | =A1.sort(CODE,DT) |
3 | =A2.group@i(CODE!=CODE[-1]||CL< CL[-1]) |
4 | =A3.select(~.len()>=5) |
5 | =A4.conj() |
解决Excel难题
A | |
1 | StockRecords.txt |
2 | =file(A1).cursor@t().sortx(CODE,DT) |
3 | =A2.group(CODE;~.group@i(CL< CL[-1]).max(~.len()):max_increase_days) |
A | |
1 | StockRecords.txt |
2 | =file(A1).cursor@t().sortx(CODE,DT) |
3 | =A2.group(CODE).conj(~.group@i(CL< CL[-1])) |
4 | =A3.select(~.len()>=5).conj() |
=spl("=E(?1).sort(CODE,DT).group@i(CODE!=CODE[-1]||CL< CL[-1]).select(~.len()>=5).conj()",A1:D253)