You will need to pass an immutable object as index so that the index considers 6 indexes. You cna do that by converting each of the sublists as tuples [tuple(i) for i in ind]
-
ind=[[1,2,3,4],[1,2,3,4],[1,2,3,4],[1,2,3,4],[1,2,3,4],[1,2,3,4]]
col=['Example', 'Example', 'Example', 'Example']
pd.DataFrame(np.zeros((6,4)), columns = col, index=[tuple(i) for i in ind])
Example Example Example Example
(1, 2, 3, 4) 0.0 0.0 0.0 0.0
(1, 2, 3, 4) 0.0 0.0 0.0 0.0
(1, 2, 3, 4) 0.0 0.0 0.0 0.0
(1, 2, 3, 4) 0.0 0.0 0.0 0.0
(1, 2, 3, 4) 0.0 0.0 0.0 0.0
(1, 2, 3, 4) 0.0 0.0 0.0 0.0
You could create a multi-index out of this so that the index has 4 levels.
ind=[[1,2,3,4],[1,2,3,4],[1,2,3,4],[1,2,3,4],[1,2,3,4],[1,2,3,4]]
col=['Example', 'Example', 'Example', 'Example']
print(pd.DataFrame(np.zeros((6,4)), columns = col, index=pd.MultiIndex.from_tuples(ind)))
Example Example Example Example
1 2 3 4 0.0 0.0 0.0 0.0
4 0.0 0.0 0.0 0.0
4 0.0 0.0 0.0 0.0
4 0.0 0.0 0.0 0.0
4 0.0 0.0 0.0 0.0
4 0.0 0.0 0.0 0.0
#Here first level is all 1 and second level is all 2 ... and so on