I have the following dataframe :
network date count2 count3 user2 user3
3 20170721 [6, 7] [1,3] [57,88] [47,58]
4 20170721 [6] [] [12] []
43 20170721 [] [7,2] [] [57,62]
and I would like to split the list per row but count and user must correspond :
network date count2 count3 user2 user3
3 20170727 6 Nan 57 Nan
3 20170727 7 Nan 88 Nan
3 20170727 Nan 1 Nan 47
3 20170727 Nan 3 Nan 58
4 20170727 6 Nan 12 Nan
43 20170727 Nan 7 Nan 57
43 20170727 Nan 2 Nan 62
How can I do it in a fast way ? The user list is in reality really long (more than 50k entry). Thank you!
Nan. What is your expected outcome? What exactly does "split the list per row" mean? What happens to each row of data???