python - Turning a series in pandas into a two column data frame -
this question has answer here:
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
Post a Comment