English

Which command is correct to display the total QUANTITY of all ITEMS in the STOCK?

Advertisements
Advertisements

Question

Which command is correct to display the total QUANTITY of all ITEMS in the STOCK? 

Options

  • print(sum(Stock["QUANTITY"])

  • print(total["QUANTITY"])

  • print(Stock["QUANTITY"].add())

  • print(Stock["QUANTITY"].sum())

MCQ
Advertisements

Solution

print(Stock["QUANTITY"].sum())

shaalaa.com
Other DataFrame Operations
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×