I am a beginner and have problem with MemoryError on my code. The csv file is big (1,5gb) and I want to find and replace every "
char with blank space. Code is working on smaller file but on this its return MemoryError. I found here that I could use Garbage Colector and was trying to make it but failed. How can i solve this problem?
text = open(r"C:\Users\jarze\abc.csv", "r")
text = ''.join([i for i in text]) \
.replace('"', '')
x = open(r"C:\Users\jarze\abc.csv","w")
x.writelines(text)
x.close()