Answers for "create a dictionary from index and column pandas"

0

create a dictionary from index and column pandas

import pandas as pd
df = pd.DataFrame({'Name': ['John', 'Sara','Peter','Cecilia'],
                   'Age': [38, 47,63,28],
                  'City':['Boston', 'Charlotte','London','Memphis']})
df
Posted by: Guest on March-25-2021

Code answers related to "create a dictionary from index and column pandas"

Python Answers by Framework

Browse Popular Code Answers by Language