Skip to content

Instantly share code, notes, and snippets.

@tengpeng
Created February 20, 2016 20:24
Show Gist options
  • Save tengpeng/08780efa6ea96076d139 to your computer and use it in GitHub Desktop.
Save tengpeng/08780efa6ea96076d139 to your computer and use it in GitHub Desktop.
split replace
with open('train.csv', 'r') as f:f = f.read()
f = f.replace(' ', ',')
f = f.split(',')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment