I am trying to expand out a dataset that has two columns and expand it out in python.
Basket | Times
______________|_______
Bread | 5
Orange, Bread | 3
I would like, based on the number in the Times column that many rows. So for the example above
Newcolumn
_______
Bread1
Bread2
Bread3
Bread4
Bread5
Orange, Bread1
Orange, Bread2
Orange, Bread3