How do I convert this dataframe
location value 0 (Richmond, Virginia, nan, USA) 100 1 (New York City, New York, nan, USA) 200
to this:
city state region country value 0 Richmond Virginia nan USA 100 1 New York City New York nan USA 200
Note that the location
column in the first dataframe contains tuples. I want to create four columns out of the location
column.