Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mmartini-usgs/4795da39adc9905f70fd8c27a1bba3da to your computer and use it in GitHub Desktop.
Save mmartini-usgs/4795da39adc9905f70fd8c27a1bba3da to your computer and use it in GitHub Desktop.
Learning to read pd0 with python - trying to solve the bytes error-Gist
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mmartini-usgs
Copy link
Author

Unfortunately, I can't post the example data here.

@Denniskamau
Copy link

Hi @mmartini-usgs ,did you find a solution for this ?I am experiencing the same where am doing a project on sentiment analysis and i want to read data in binary but when I use the rb for reading and wb for writing as stated from this documentation I get the error _csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
Any suggestion on how to handle this because I need the data in binary and not string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment