Is there any smart way to split (explode) a row into multiple rows without using explode, at the same time intelligently divide a column value equally?
Suppose I have a data like this:
date quantity days
5-mar 10 1
8-mar 30 3
9-Mar 10 1
and the resultant data ought to be like this:
I have tried to use assign - but to no avail. Issit that the only way to do it is through iterrows(), loop through it and explicitly create new rows?
P/s: Due to certain restrictions and I have to use pandas <0.25, so I can't really use .explode()