jvns / pandas-cookbook

Recipes for using Python's pandas library
6.68k stars 2.32k forks source link

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

Open mariocpinto opened 8 years ago

mariocpinto commented 8 years ago

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