I have the data in dataframes like below. I want to split the item into same number of rows
>>> df
idx a
0 3
1 5
2 4
from above dataframe, I want the below as
>>> df
idx a
0 1
1 2
2 3
3 1
4 2
5 3
6 4
7 5
8 1
9 2
10 3
11 4
I tried several ways, but no success.