Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data_dict ={'0_deg': [2, 11, 21, -17, 5, 40, 22, 7, 20, -6, -6, -6, 24, 21, 20, 61, 21, 5, 2, 17],
- '10_deg': [12, -21, 11, 1, 4, -2, 33, 53, 18, 10, -3, -1, 23, 18, 23, 8, 11, -25, 21, -14],
- '20_deg': [23, -10, 3, 20, -41, 13, 10, 5, -9, 7, -4, -21, 14, -26, -31, 9, 1, -15, 3, -6],
- '30_deg': [12, 9, -5, 4, 9, -46, 1, -8, -27, 3, -9, -14, 15, -6, 14, 7, -11, 5, 19, -4]}
- data_dict = pd.read_csv('Dataset.csv')
- data_dict = data_dict.set_index('Indexes')
- #row idx of a group in this list
- idx =[4,10,37,109,133]
- # getting some dimensions and sorting the data
- row_idx_length = len(idx)
- group_length = len(data_dict['0_deg'])
- number_of_groups = len(data_dict.keys())
- idx = idx*number_of_groups
- data_arr = np.zeros((group_length,number_of_groups),dtype=np.int32)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement