CommencerCommencer gratuitement

Pure summary with .sum()

For this chapter, we'll work with a larger sales DataFrame, which has already been loaded for you. It contains transaction-level data of tickets purchased. Each row represents a single customer purchasing tickets for one movie at one theater location. Feel free to explore this data with the methods you learned about in Chapter 1, like .head().

For this exercise, use the .sum() method with the appropriate arguments to answer the question:

What is the total number of tickets sold according to the ticket_quantity column?

Cet exercice fait partie du cours

Python for Spreadsheet Users

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice