Hello, how can I replicate a row according to a number in a column? For example, I have the following:

ab 3
cd 5

I want as result 3 rows with ab in them, and 5 rows with cd in them:

ab 3
ab 3
ab 3
cd 5
cd 5
cd 5
cd 5
cd 5

Any help? Thanks!