SyntaxFix
Write A Post
Hire A Developer
Questions
With pandas it can be done as:
If lakes is your DataFrame:
area_dict = lakes.to_dict('records')