ch_idx = [[1], [2, 3], [3, 4, 5], [2], [3, 4], [3]]
I want to convert this to a dataframe where, for each list, index 1 becomes the first column, idx 2 the second column, etc. This means, as the lists are unequal, that some columns will need to be filled with NaN.
Desired outcome:
1 NaN NaN
2 3 NaN
3 4 5
2 NaN NaN
3 4 NaN
3 NaN NaN
NB: this does not answer my question