Get startedGet started for free

Storing a DataFrame

You're analyzing some seasonal data and decide to store sales data for Q1 (January 1 to March 31, 2025) for the North region for comparison later on.

This exercise is part of the course

DataLab with SQL

View Course

Exercise instructions

  • Write a query that selects all columns and filters for a sale_date between '2025-01-01' and '2025-03-31'.
  • Add another filter for the region called 'North'.
  • Order the results by sale_date in ascending order.
  • Store the DataFrame as q1_north.

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise