Get startedGet started for free

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?

This exercise is part of the course

Python for Spreadsheet Users

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise