我如何从汇总表中提取第一栏,或从第5栏到第5栏+n栏中提取一栏?
The scenario is that I have a matrix, of dim=(i,j), then I want to look a contiguous blocks of column of length n. So I want to look at the matrix from column0 to column n, then at column1 to column n+1. etc. Until I reach the end of my matrix.
增 编
>>> mat=array(range(0,20)).reshape(2,10)
>>> mat
array([[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]])
Given n=8. I want to extract the first 8 columns.
然后,汇总表从[1,11]栏改为[8,18]栏
然后,汇总表从[2,12]栏改为[9,19]栏