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