If lakes
is your DataFrame
, you can do something like
area_dict = dict(zip(lakes.id, lakes.value))
More Related Contents:
- Convert list of dictionaries to a pandas DataFrame
- Convert a Pandas DataFrame to a dictionary
- Pandas DataFrame to List of Dictionaries
- Nested dictionary to multiindex dataframe where dictionary keys are column labels
- Pandas groupby.size vs series.value_counts vs collections.Counter with multiple series
- How to create a dictionary of two pandas DataFrame columns
- How to convert a dataframe to a dictionary
- dataframe to dict such that one column is the key and the other is the value [duplicate]
- How to convert string representation of dictionary in Pandas DataFrame to a new columns?
- How to add a new column to an existing DataFrame?
- Python Pandas – Find difference between two data frames
- Rename Pandas DataFrame Index
- Pandas DataFrame stored list as string: How to convert back to list
- Find maximum value of a column and return the corresponding row values using Pandas
- Merge multiple column values into one column in python pandas
- How do I get the row count of a Pandas DataFrame?
- Pandas dataframe fillna() only some columns in place
- Apply CSS class to Pandas DataFrame using to_html
- Python – splitting dataframe into multiple dataframes based on column values and naming them with those values [duplicate]
- How can I replicate rows in Pandas?
- Convert column to row in Python Pandas
- How to create a DataFrame of random integers with Pandas?
- Putting many python pandas dataframes to one excel worksheet
- Find difference between two data frames
- Create new column based on values from other columns / apply a function of multiple columns, row-wise in Pandas
- Nested Dictionary to MultiIndex pandas DataFrame (3 level)
- Efficient way to add rows to dataframe
- Find names of top-n highest-value columns in each pandas dataframe row
- pandas extract year from datetime: df[‘year’] = df[‘date’].year is not working
- pandas.read_csv FileNotFoundError: File b’\xe2\x80\xaa’ despite correct path