0

I have a data frame like this:

1 stname1 2 regionname1(of state 1) 3 regionname2 .... 15 stname2 16 regioname1(of state 2) ..and so on.

I wish to convert the above data frame into something like this: 1 stname1 regionname1 2 stname1 regionname2 ..... 15 stname2 regionname1 16 stname2 regionname2 and so on.

Being a newbie into python, it would be a great help if someone can explain the above problem with any suitable type of example.

0 Answers0