Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import dask.dataframe as ddf
- with open(Mar_N_W, 'rb') as f: result = chardet.detect(f.read())
- Mar_NW=ddf.read_csv(Mar_N_W,encoding=result['encoding'],sep=None)
- ~AppDataLocalContinuumanaconda3libsite-packagespandasioparsers.py in _next_iter_line(self, row_num)
- 2693
- 2694 try:
- -> 2695 return next(self.data)
- 2696 except csv.Error as e:
- 2697 if self.warn_bad_lines or self.error_bad_lines:
- ~AppDataLocalContinuumanaconda3libcodecs.py in decode(self, input, final)
- 320 # decode input (taking the buffer into account)
- 321 data = self.buffer + input
- --> 322 (result, consumed) = self._buffer_decode(data, self.errors, final)
- 323 # keep undecoded input until the next call
- 324 self.buffer = data[consumed:]
- ~AppDataLocalContinuumanaconda3libencodingsutf_16.py in _buffer_decode(self, input, errors, final)
- 67 raise UnicodeError("UTF-16 stream does not start with BOM")
- 68 return (output, consumed)
- ---> 69 return self.decoder(input, self.errors, final)
- 70
- 71 def reset(self):
- UnicodeDecodeError: 'utf-16-le' codec can't decode byte 0x0a in position 0: truncated data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement