Links

Create dataframe from dict

Tags: #pandas #dict #snippet #dataframe #operations
Author: Florent Ravenel
Description: This notebook provides a step-by-step guide to creating a dataframe from a dictionary using the Pandas library.

Input

Import libraries

import pandas as pd

Setup your dict

my_dict = {"LABEL": 1995, "VALUE": 219}

Model

Create dataframe

df = pd.DataFrame([my_dict])
df

Output

Display result

df