For example, I got a pd.Series of list like below
test = pd.Series([[1, 0, 0, 0],[0, 1, 0, 0],[0, 1, 0, 0],[0, 0, 0, 1],[1, 0, 0, 0]]) print(test[0]) 0 [1,