Skip to content

Instantly share code, notes, and snippets.

@konsumer
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konsumer/11098424 to your computer and use it in GitHub Desktop.
Save konsumer/11098424 to your computer and use it in GitHub Desktop.
from __future__ import with_statement # < python 2.6
# parse CSV, 1 point at a time
with open("data.txt") as f:
for line in f:
point = line.strip().split(',')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment