Sarthaks Test
0 votes
in Information Technology by (47.5k points)
closed by

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

B_NOName Score1Score2
1Sunil Pillai 9080
2Gaurav Sharma6545
3Piyush Goel7090
4Kartik Thakur8076

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 (46.3k 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.