Created
February 21, 2018 16:44
-
-
Save juliobguedes/eae6ac2b507a3aa29cfd09a28c305217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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