Function CountCcolor(range_data As Range, criteria1 As Range, criteria2 As Range) As Longxcolor = criteria1.Interior.ColorIndexFor Each dataxIn range_data
If datax.Interior.ColorIndex = xcolor And data
我有一个形状为(49359,10852)的数组dataX,还有第二个形状的数组dataY (9359,10852)。dataY的值可以从1到6。我想做下面的工作。将其用作dataX中的索引,并将所有4个维度中的值作为较小的numpy数组使用。我做过这个
element = dataX[:,idx[0],idx[1]]element.shape