Extract the month number from datetime values.
Below are the 15 Bamboo Weekly exercises that use dt.month on real-world data — try each one, then study the worked solution.
- Bamboo Weekly #152: Congestion pricing
- Bamboo Weekly #151: PyPI in 2025
- Bamboo Weekly #128: Extreme heat
- Bamboo Weekly #125: Shrinking dollars
- Bamboo Weekly #113: US airport traffic
- Bamboo Weekly #86: FEMA
- Bamboo Weekly #79: Cyber attacks
- Bamboo Weekly #73: Avocado hand
- Bamboo Weekly #71: Holidays
- Bamboo Weekly #66: Pittsburgh
- Bamboo Weekly #45: Netflix
- Bamboo Weekly #33: Fracking
- Bamboo Weekly #16: Consumer oil prices
- Bamboo Weekly #5: Ukrainian exports
- Bamboo Weekly #2: Egg prices
Part of the Pandas Methods Index. See also practice by skill.