Untitled
Anonymous
python
12/25/2023 1:58 PM
368 B
11
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