I have this dataframe
Node TLW
1 [2, 22, 3]
2 [12]
3 [2,43]
4 [3]
5 [11]
I would like to have something like this
Node
1
2
3
4
5
22
12
43
11
Could you please tell me how to get it?
I would try to use for loop in the list and then append to my dataframe, checking for duplicates. This would be my approach, but I am still having difficulties in using for loop here.
I was thinking of using explode
but the output would be not what I am looking for, as the (distinct) numbers (or strings) should be in the column Node
, not in TLW
.