From cc901c3265269ad7c9c2d3d8f4f8163b89fb2d0f Mon Sep 17 00:00:00 2001 From: Vishal Anand Date: Sun, 17 Jun 2018 07:13:39 +0530 Subject: [PATCH] 16th row is the header After skipping 15 rows, header=0 gives the top row. header=True was giving an error. --- ...ombining dataframes and scraping Canadian weather data.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..bbbd87c43 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 @@ -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', header=0)" ] }, {