Untitled

mail@pastecode.io avatar
unknown
python
2 months ago
276 B
0
Indexable
Never
# Import pandas package 
import pandas as pd 
import numpy as np 
	
# Define a dictionary containing data 
data = {'City':['Bangalore', 'Mumbai', 'Chennai', 'Delhi']} 
	
# Convert the dictionary into DataFrame 
df = pd.DataFrame(data) 
	
# Observe the result 
df 
Leave a Comment