I am getting a csv file from a url and I am trying to read it using pandas.read_csv with Python3, but I am getting a parserError for some reason. Here's the code:
csvurl = requests.get("https://github.com/cs109/2014_data/blob/master/countries.csv")
csvb = BytesIO(csvurl.content)
countries = pd.read_csv(csvb)
and I am getting the following error:
ParserError: Error tokenizing data. C error: Expected 1 fields in line 114, saw 3
But line 114 is just the same as the other lines. Is the error related to me trying to read csv using Bytes object?