Created
August 13, 2018 12:32
-
-
Save nikolasrangel/7c0729df4601a134e309f3125999f7b1 to your computer and use it in GitHub Desktop.
Creating a Pandas DataFrame from a Python 3 dictionary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
dict = {'description': 'value'} | |
dict_items = dict.items() | |
dataframe = pd.DataFrame(list(dict_items), columns=['Description', 'Values']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment