I keep getting an error when loading data for this challenge.
IncompleteRead Traceback (most recent call last)
in
1 # In read_csv() function, we have passed the location to where the files are located in the dphi official github page.
----> 2 train_data = pd.read_csv(“https://raw.githubusercontent.com/dphi-official/Datasets/master/used_car_price/train_set_label.csv” )
~\anaconda3\lib\site-packages\pandas\io\parsers.py in read_csv(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, cache_dates, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, dialect, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision)
684 )
685
→ 686 return _read(filepath_or_buffer, kwds)
687
688
~\anaconda3\lib\site-packages\pandas\io\parsers.py in _read(filepath_or_buffer, kwds)
432 # though mypy handling of conditional imports is difficult.
433 # See Issues with conditional imports · Issue #1297 · python/mypy · GitHub
→ 434 fp_or_buf, _, compression, should_close = get_filepath_or_buffer(
435 filepath_or_buffer, encoding, compression
436 )
~\anaconda3\lib\site-packages\pandas\io\common.py in get_filepath_or_buffer(filepath_or_buffer, encoding, compression, mode, storage_options)
186 # Override compression based on Content-Encoding header
187 compression = “gzip”
→ 188 reader = BytesIO(req.read())
189 req.close()
190 return reader, encoding, compression, True
~\anaconda3\lib\http\client.py in read(self, amt)
469 else:
470 try:
→ 471 s = self._safe_read(self.length)
472 except IncompleteRead:
473 self._close_conn()
~\anaconda3\lib\http\client.py in _safe_read(self, amt)
612 data = self.fp.read(amt)
613 if len(data) < amt:
→ 614 raise IncompleteRead(data, amt-len(data))
615 return data
616
IncompleteRead: IncompleteRead(5114754 bytes read, 60098350 more expected)