I just can't seem to get this right.
I now have a Pandas series called text
It consists of 105 rows of article text.
I want to loop through each of these rows and replace certain characters like " and -. Here's my code
cleaned = []
for i in text:
i.replace('“', '')
i.replace('”', '')
i.replace('–', '')
cleaned.append(i)
However, when I try to print out the text in this cleaned list, the characters above aren't removed. Where am I going wrong? Thanks
for i in cleaned:
print(i)