13.08.2022 Views

advanced-algorithmic-trading

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

379

new_str = "%s,%s\n" % (strpf, old_value)

newspl = new_str.strip().split(",")

final_str = "%s,%s\n" % (newspl[0], newspl[2])

final_str = final_str.replace(’"’,’’)

old_value = f.strip().split(’,’)[1]

new_list.append(final_str)

# Output the updated forecasts CSV file

out = open("forecasts_new.csv", "w")

for n in new_list:

out.write(n)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!