python - Turning a series in pandas into a two column data frame -


i have list of data imported text file has state, region names state below, new state, , region names below 20 states.

alabama {edit} florence jacksonville alaska {edit} fairbanks 

i want able split there 'state' column , 'region name'. , region name lists region names, , state name moved column left of data

    state   region name 0   alabama auburn 1   alabama florence 2   alabama jacksonville 3   alaska  fairbanks 


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -