Let's say I have a data frame called df
x count
d 2
e 3
f 2
Count would be the counter column and the # times I want it to repeat.
How would I expand it to make it
x count
d 2
d 2
e 3
e 3
e 3
f 2
f 2
I've already tried numpy.repeat(df,df.iloc['count']) and it errors out