I have a list of the form
results = [{'Parcel': {'AIN': '2004001003','Longitude': '-118.620668807','Latitude':'34.2202197879'}}, {'Parcel': {'AIN': '2004001004','Longitude': '-118.620668303','Latitude': '34.2200390973'}}]
I want to transform this into a dataframe with 3 columns 'AIN','Longitude','Latitude' I have tried this:
appended_data = pd.DataFrame()
for i in range(0,len(parcel_list)):
appended_data = pd.concat([appended_data,pd.DataFrame((results[i].values()))])
appended_data
This seems to work, but in reality, I have a large list of about >500,000 obs so my approach takes forever. How can I speed this up?
Thank you!