jvns / pandas-cookbook

Recipes for using Python's pandas library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update to Ch 5: Incorrect year for January fixed at source

mariocpinto opened this issue · comments

In ch.5, for the download_weather_month function, the source url now provides the correct data even when you look for data for the month of January. So one no longer needs to increment the year by 1 for January. i.e. remove:

    if month == 1:
        year += 1