Class 12th CBSE IP

Write a python program to create a DataFrame for students storing their roll no, name, address, phone and display the DataFrame on the screen.

Solution: – 

import pandas as pd df=pd.DataFrame() df['rollno']=[1,2,3,4,5] df['name']=['Bhavika','Mansha','Kriti','Drishti','Khushboo'] df['address']=['Punjabi Bagh','Moti Nagar','Ramesh Nagar','Kirti Nagar','Shadipur'] df['phone']=[2345,4567,8910,1112,1213] print(df)

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.

ava4.png
Chris Matthews

Designer

SEO & Instagram

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.