diff --git a/cookbook/Chapter 5 - Combining dataframes and scraping Canadian weather data.ipynb b/cookbook/Chapter 5 - Combining dataframes and scraping Canadian weather data.ipynb index 277658ff3..28db9f3f7 100644 --- a/cookbook/Chapter 5 - Combining dataframes and scraping Canadian weather data.ipynb +++ b/cookbook/Chapter 5 - Combining dataframes and scraping Canadian weather data.ipynb @@ -1460,7 +1460,7 @@ }, "outputs": [], "source": [ - "url_template = \"http://climate.weather.gc.ca/climateData/bulkdata_e.html?format=csv&stationID=5415&Year={year}&Month={month}&timeframe=1&submit=Download+Data\"" + "url_template = \"http://climate.weather.gc.ca/climate_data/bulk_data_e.html?format=csv&stationID=5415&Year={year}&Month={month}&timeframe=1&submit=Download+Data\"" ] }, { @@ -1479,7 +1479,7 @@ "outputs": [], "source": [ "url = url_template.format(month=3, year=2012)\n", - "weather_mar2012 = pd.read_csv(url, skiprows=15, index_col='Date/Time', parse_dates=True, encoding='latin1', header=True)" + "weather_mar2012 = pd.read_csv(url, skiprows=15, index_col='Date/Time', parse_dates=True, encoding='latin1')" ] }, { @@ -4854,7 +4854,7 @@ " if month == 1:\n", " year += 1\n", " url = url_template.format(year=year, month=month)\n", - " weather_data = pd.read_csv(url, skiprows=15, index_col='Date/Time', parse_dates=True, header=True)\n", + " weather_data = pd.read_csv(url, skiprows=15, index_col='Date/Time', parse_dates=True)\n", " weather_data = weather_data.dropna(axis=1)\n", " weather_data.columns = [col.replace('\\xb0', '') for col in weather_data.columns]\n", " weather_data = weather_data.drop(['Year', 'Day', 'Month', 'Time', 'Data Quality'], axis=1)\n",