Skip to content

Instantly share code, notes, and snippets.

@juliobguedes
Created February 21, 2018 16:44
Show Gist options
  • Save juliobguedes/eae6ac2b507a3aa29cfd09a28c305217 to your computer and use it in GitHub Desktop.
Save juliobguedes/eae6ac2b507a3aa29cfd09a28c305217 to your computer and use it in GitHub Desktop.
# coding: utf-8
# (C) Júlio Barreto
# Replace commas with dots
data = open("file_name.csv", 'r')
lines = data.readlines()
for i in range(len(lines)):
lines[i] = lines[i].replace(",",".")
to_write = "".join(lines)
with open("result.csv",'w') as result:
result.write(to_write)
data.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment