Aan de slagGa gratis aan de slag

.info() and .describe() methods

The .info() method allows us to learn the shape of object types of our data. The .describe() method gives us summary statistics for numerical columns in our DataFrame.

In this exercise, you can use the console to your right to explore the sales dataset, which is already loaded.

Try writing sales.head() in the console and hitting enter on your keyboard. Note you don't need print when working directly in the console.

Now, use the .info() and .describe() methods to answer:

How many rows and columns are in this dataset, and what is the average (mean) number of tickets sold per movie?

Deze oefening maakt deel uit van de cursus

Python for Spreadsheet Users

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen