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

Connected

연습 문제

Profiling a lazy query

Before adding a new query to a daily workflow, the team wants to see where time is actually spent. Profiling runs the lazy query like .collect() does, but also returns a timings DataFrame with one row per stage.

지침

100 XP
  • Filter library to checkouts where use is "Physical".
  • Keep the 10 longest titles by title_len using .top_k().
  • Execute the query with profiling so you also get a timings DataFrame.