Session Ready
Exercise

The .head() method

It's great to see your data, but most times not all at once. Imagine if you have 10,000 rows printing to the console at once. No good!

To quickly and easily display the first few rows of our data, we can use the .head() method.

Instructions 1/2
undefined XP
  • 1

    Use the .head() method to display the first 5 rows of sales.

    • 2

      Now use the .head() method and print the first 3 rows of sales.