1. 학습
  2. /
  3. 강의
  4. /
  5. Data Transformation with Polars

Connected

연습 문제

Filtering for a time range

Now that you can filter for a single moment, let's filter for a range. To understand the morning commute pattern, find all rows between 7 AM and 10 AM on the first day to analyze the morning rush.

polars is loaded as pl. The DataFrame bikes is available with the time column as a Datetime.

지침

100 XP
  • Filter bikes for rows where time is between 7 AM and 10 AM on July 1st, 2016.