SHARE
TWEET

Untitled

a guest Jun 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import dask.dataframe as ddf
  2.  
  3.  
  4. with open(Mar_N_W, 'rb') as f: result = chardet.detect(f.read())
  5. Mar_NW=ddf.read_csv(Mar_N_W,encoding=result['encoding'],sep=None)
  6.  
  7.  
  8. ~AppDataLocalContinuumanaconda3libsite-packagespandasioparsers.py in _next_iter_line(self, row_num)
  9.    2693
  10.    2694         try:
  11. -> 2695             return next(self.data)
  12.    2696         except csv.Error as e:
  13.    2697             if self.warn_bad_lines or self.error_bad_lines:
  14.  
  15. ~AppDataLocalContinuumanaconda3libcodecs.py in decode(self, input, final)
  16.     320         # decode input (taking the buffer into account)
  17.     321         data = self.buffer + input
  18. --> 322         (result, consumed) = self._buffer_decode(data, self.errors, final)
  19.     323         # keep undecoded input until the next call
  20.     324         self.buffer = data[consumed:]
  21.  
  22. ~AppDataLocalContinuumanaconda3libencodingsutf_16.py in _buffer_decode(self, input, errors, final)
  23.      67                 raise UnicodeError("UTF-16 stream does not start with BOM")
  24.      68             return (output, consumed)
  25. ---> 69         return self.decoder(input, self.errors, final)
  26.      70
  27.      71     def reset(self):
  28.  
  29. UnicodeDecodeError: 'utf-16-le' codec can't decode byte 0x0a in position 0: truncated data
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top