I have a dataframe like this (but much larger):
begin end comp p_n next_d next_p
c_n ml
1 1234 2013-09-02 2014-12-16 comp1 111 [20000, 25000, 50000] [0.01, 0.01, 0.01]
1235 2013-09-02 2014-12-16 comp2 222 [25000, 50000, 75000, 100000] [0.1, 0.1, 0.1, 0.1]
2 1236 2013-09-02 2014-12-16 comp3 333 [5000, 10000, 15000, 170000, 25000] [0.1, 0.1, 0.1, 0.1, 0.1]
1237 2013-09-02 2014-12-16 comp4 444 [5000, 10000, 25000, 50000] [0.01, 0.01, 0.01, 0.01]
I need to expand both next_d
and next_p
which have the same list size for each particular row. I've tried various hints and answers, for example, this and this, but I need to expand two lists instead of one, and can't imagine how to apply this to my problem. Please help.