हिंदी

Write the python statements to print the sum of the english marks scored by Mishti.

Advertisements
Advertisements

प्रश्न

Write the python statements to print the sum of the english marks scored by Mishti.

कोड लेखन
Advertisements

उत्तर

dfMishti = df[df['Name'] == 'Mishti']
print(dfMishti['Eng'].sum())

Explanation:

  • df[df['Name']=='Mishti'] selects only the rows containing Mishti's marks.
  • dfMishti['Eng'].sum() calculates the total English marks scored by Mishti.
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 2 | पृष्ठ ६९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×