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
- How to convert a 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
- 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?
- Pandas conditional creation of a series/dataframe column
- Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
- How to unnest (explode) a column in a pandas DataFrame, into multiple rows
- Remove unwanted parts from strings in a column
- Comparing two dataframes and getting the differences [duplicate]
- How to filter rows containing a string pattern from a Pandas dataframe [duplicate]
- Accessing Pandas column using squared brackets vs using a dot (like an attribute)
- Get the name of a pandas DataFrame
- Why does my Pandas DataFrame not display new order using `sort_values`?
- python/pandas: convert month int to month name
- How to check if a column exists in Pandas
- What is the difference between join and merge in Pandas?
- Ambiguity in Pandas Dataframe / Numpy Array “axis” definition
- How can I count the number of consecutive TRUEs in a DataFrame?
- How do I filter a pandas DataFrame based on value counts?
- Pandas query function not working with spaces in column names
- Remove NaN values from pandas dataframe and reshape table [duplicate]
- Remove ends of string entries in pandas DataFrame column
- How to convert DataFrame.append() to pandas.concat()?
- How to efficiently assign unique ID to individuals with multiple entries based on name in very large df
- Difference between df[x], df[[x]], df[‘x’] , df[[‘x’]] and df.x