I'm trying to make a Pandasandas DataFrame the data is zeros with shape (6,4) and the columns are
col=['Example', 'Example', 'Example', 'Example']
and the index is a list of lists:
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]]
and I'm doing it in this way:
pd.DataFrame(np.zeros((6,4)), columns = col, index=ind )
but it returns an error
Shape of passed values is (6, 4), indices imply (4, 1)
I tried to replace the list with a tuple and it worked! I'm wandering why this error is happening and how to solve it