delete add replace conttent from csv by using python

Solutions on MaxInterview for delete add replace conttent from csv by using python by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "delete add replace conttent from csv by using python"
Lennard
18 Aug 2020
1import csv
2
3original = open("original.csv", 'r')
4original = ''.join([i for i in original]) \
5    .replace("C-F", "F-C") \
6    .replace("G-F", "F-G")
7x = open("edited.csv", "w")
8x.writelines(original)
9x.close()
10
11
12
13