Class 12th CBSE
Create a pandas series from a dictionary of values and an ndarray.
Solution: –
import pandas as pd import numpy as np print("Creating Series using ndarray") s= pd.Series(np.array([1,2,3,4,5])) print(s) print("Creating Series using Dictionary") dict1 ={'A':10,'B':20,'C':30} s1 = pd.Series(dict1) print(s1)
Output
Fun & Easy to follow
Works on all devices
Your own Pace
Super Affordable
Popular Videos
UX for Teams
Learn the basics and a bit beyond to improve your backend dev skills.

Chris Matthews
Designer
SEO & Instagram
Learn the basics and a bit beyond to improve your backend dev skills.

Chris Matthews
Designer