I am having difficulty in extracting values from a dictionary. The dictionary includes a list that contains a pair of numerical values that are of interest and my intention is to extract them and save them in a separate csv file.
The dictionary array looks like this:
{"geodesic":false, "type":"Point", "coordinates":[34.5 , 23.5]}
I am trying to get the coordinates in two separate columns. Thank you!
pd.DataFrame(mydict).to_csv('out.csv', index=False)
dataset1 = pd.read_csv('out.csv')
dataset2 = pd.DataFrame(dataset1, columns=["coordinates"])