Refer to this code example:
Emp_dict=Employee.to_dict('records')
You can directly use the 'to_dict()' function and use the parameter 'records', so that manual transposing is not required.
print(Emp.dict)
[{'Designation': 'Developer', 'Name': 'Raj'}, {'Designation': 'CTO', 'Name': 'Sam'}, {'Designation': 'CEO', 'Name': 'Suzy'}, {'Designation': 'CFO', 'Name': 'Anne'}, {'Designation': 'COO', 'Name': 'Rohan'}]
Hope this answer helps you!