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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
