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.