I\'m trying to query information from salesforce using the simple_salesforce package in python.
The problem is that it\'s nesting fields that are a par
Pandas can read ordered dicts.
import pandas as pd
from simple_salesforce import Salesforce
sf = Salesforce(username='your_username',
password='your_password',
security_token='your_token')
query = "select id, account.id from opportunity where closedate = last_n_days:5"
df = pd.DataFrame(sf.query_all(query)['records']).drop(columns='attributes')