Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
130k views
in Information Technology by (45.7k points)
closed by

Write a program in Python Pandas to create the following DataFrame batsman from a Dictionary:

B_NO Name  Score1 Score2
1 Sunil Pillai  90 80
2 Gaurav Sharma 65 45
3 Piyush Goel 70 90
4 Kartik Thakur 80 76

Perform the following operations on the DataFrame :

(1) Add both the scores of a batsman and assign to column “Total”

(2) Display the highest score in both Score1 and Score2 of the DataFrame.

(3) Display the DataFrame.

1 Answer

+1 vote
by (45.0k points)
selected by
 
Best answer

Alternative Answer

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...