1. 학습
  2. /
  3. 강의
  4. /
  5. Scaling and Optimizing Data Pipelines with Polars

Connected

연습 문제

Collecting two reports together

The dashboard needs two related summaries: digital checkouts by format and digital checkouts by month. Both queries scan the same CSV. Hand both lazy queries to pl.collect_all() so Polars plans them together and reads the file just once.

Two LazyFrame queries have already been built for you:

  • checkouts_by_format: total digital checkouts grouped by format.
  • checkouts_by_month: total digital checkouts grouped by month.

지침

100 XP
  • Use the right method to execute both lazy queries at once.
  • Pass checkouts_by_format first and checkouts_by_month second in the list.