Skip to content

Instantly share code, notes, and snippets.

@sebble
Created January 21, 2015 11:22
Show Gist options
  • Save sebble/3dd7f07ca87baca73fc0 to your computer and use it in GitHub Desktop.
Save sebble/3dd7f07ca87baca73fc0 to your computer and use it in GitHub Desktop.
Parse a simple CSV file with a Python one-liner
data = array([line.strip().split(',') for line in open('data.csv')])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment