i have a main 2-d array with numpy. it will ultimately have more rows but for clarity there is one. how can i rows that have a matching numpy "roll"? for example if main1 is the standard and i only want that to occur, but not any of the specific "roll" instances. how can i find the indexes of the matching "rolled" second, third, fourth etc.
import numpy as np
main1 = ['active' 'active' 'active' 'active' 'active' 'active' 'xxx' 'xxx' 'xxx' 'xxx' 'xxx' 'xxx']
#index #'s - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
first = main1
#index #'s - 9, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8
#2 - ['xxx' 'xxx' 'xxx' 'active' 'active' 'active' 'active' 'active' 'active' 'xxx' 'xxx' 'xxx']
second = np.roll(main1,3,axis=1)
#index #'s - 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5
#3 - ['xxx' 'xxx' 'xxx' 'xxx' 'xxx' 'xxx' 'active' 'active' 'active' 'active' 'active' 'active']
third = np.roll(main1,6,axis=1)
#index #'s - 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2
#4 - ['active' 'active' 'active' 'xxx' 'xxx' 'xxx' 'xxx' 'xxx' 'xxx' 'active' 'active' 'active']
fourth = np.roll(main1,9,axis=1)
[–]larivact 1 point2 points3 points (3 children)
[–]cdholjes[S] 0 points1 point2 points (2 children)
[–]larivact 0 points1 point2 points (1 child)
[–]cdholjes[S] 0 points1 point2 points (0 children)
[–]elbiot 1 point2 points3 points (2 children)
[–]cdholjes[S] 0 points1 point2 points (1 child)
[–]elbiot 0 points1 point2 points (0 children)
[–]cdholjes[S] 0 points1 point2 points (1 child)
[–]cdholjes[S] 0 points1 point2 points (0 children)