Untitled
unknown
python
2 years ago
276 B
6
Indexable
# 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
Editor is loading...
Leave a Comment