Skip to content
Snippets Groups Projects
Commit d17d55f8 authored by rubegar's avatar rubegar
Browse files

Delete cambio.py

parent c77d1076
No related branches found
No related tags found
No related merge requests found
import csv
def replace_commas(input_file, output_file):
with open(input_file, 'r', newline='') as infile, open(output_file, 'w', newline='') as outfile:
reader = csv.reader(infile)
writer = csv.writer(outfile, delimiter=';')
for row in reader:
new_row = [column.replace('.', ',') for column in row]
writer.writerow(new_row)
# Nombre del archivo CSV de entrada y salida
input_filename = 'confianza.csv'
output_filename = 'confianza_final.csv'
replace_commas(input_filename, output_filename)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment