Class 12th CBSE IP
Write a python program to show the use of header and tail methods of Series.
Solution: –
import pandas as pd myDict= {1:'Mannat',2:'Samidha',3:'Jai',4:'Kalk',5:'Abhishek',6:'Yuvesh'} print(myDict) mySeries=pd.Series(myDict) print(mySeries) print(mySeries.head(2)) print(mySeries.tail(2))
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