I have the following for loop I need to make Pythonic by using a list comprehension:
accounts_list = []
for a in Accounts:
rows = {
'Account': a["FullyQualifiedName"],
'Classification': a["Classification"],
'AccountType': a['AccountType']
}
accounts_list.append(rows)
accounts_df = pd.DataFrame(accounts_list)
[{ 'Account': a["FullyQualifiedName"], 'Classification': a["Classification"],'AccountType':a['AccountType'] } for a in Accounts]