0

I would like to append rows based on value in another column -

fruit value
'grape' 1
'apple' 2
'peach' 3

Wanted output - I would like to append rows by *n when the value is larger than 1. 'apple' row will be populated twice, and 'grape' row will be populated three times

fruit value
'grape' 1
'apple' 2
'apple' 2
'peach' 3
'peach' 3
'peach' 3
halo09876
  • 2,725
  • 12
  • 51
  • 71

0 Answers0