WillKoehrsen / Data-Analysis

Data Science Using Python

Home Page:https://medium.com/@williamkoehrsen/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

in plotly-time-series.ipynb Value error when reading the csv

zinyosrim opened this issue · comments

df = pd.read_csv('building_one.csv', header=[0, 1], index_col=False) produces a
ValueError: index_col must only contain row numbers when specifying a multi-index header.

To resolve: Copied the raw data from https://media.githubusercontent.com/media/WillKoehrsen/Data-Analysis/master/plotly/building_one.csv and saved it as building_one.csv

Yes, the csv files are saved in [Git Large File Storage])(https://git-lfs.github.com/). To access them, you have to download the original raw file from GitHub since the file if you pull the repository is only a pointer. Thanks for posting the solution!