I have a df like:
ID value1 start end
1 100 1 2
1 200 2 4
2 50 1 1
2 30 3 5
I want to fill in new rows for each value between start and end
The final df should look like this where period is each unique value between start and end
ID value1 period
1 100 1
1 100 2
1 200 2
1 200 3
1 200 4
2 50 1
2 30 3
2 30 4
2 30 5