मराठी

Write the python statements to print average marks in Science by all the students in each UT.

Advertisements
Advertisements

प्रश्न

Write the python statements to print average marks in Science by all the students in each UT.

कोड लेखन
Advertisements

उत्तर

This code groups the DataFrame according to UT (Unit Test) and calculates the average Science marks of all students in each Unit Test using mean().

print("Average marks in Science by all students in each UT:")
print(df.groupby('UT')['Science'].mean())
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 3: Data Handling using Pandas - II - Intext Questions [पृष्ठ ८२]

APPEARS IN

एनसीईआरटी Informatics Practices [English] Class 12
पाठ 3 Data Handling using Pandas - II
Intext Questions | Q 7. | पृष्ठ ८२
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×