Skip to content

Instantly share code, notes, and snippets.

@betodealmeida
Created June 27, 2014 03:31
Show Gist options
  • Select an option

  • Save betodealmeida/91d931c77e5d13f311b1 to your computer and use it in GitHub Desktop.

Select an option

Save betodealmeida/91d931c77e5d13f311b1 to your computer and use it in GitHub Desktop.
Pydap CSV essentials
def stream(self):
with open(self.filepath, 'Ur') as fp:
reader = csv.reader(fp)
reader.next() # consume var names
for row in reader:
yield row
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment