0

I extracted my local language and converted it from a dataframe to .txt file this is what i got

Adìẹ funfun kò mọ ara rẹ̀lágbà.
Díẹ̀ díẹ̀ nimú ẹlẹ́dẹ̀ẹ́ fi ń wọgbà.
Ilé ọba tójó ẹwà ló bùsi.
"Ile oba t'o jo, ewa lo busi".
"Gbogbo alangba lo d'anu dele, a ko mo eyi t'inu nrun".
Ile la ti n ko eso re ode
"A pę ko to jęun, ki ję ibaję"
"Eewu bę loko Longę, Longę fun ara rę eewu ni"
"Bi Ēēgun nla ba ni ohùn o ri gontò, gontò na a ni ohùn o ri Ēēgun nla"

how can i remove the double quote from each string

1 Answers1

0

Simply open the file and use str.replace() to replace quotes with empty strings.

with open('file.txt','r') as f:
    data = f.read()

data = data.replace('"', '')
clubby789
  • 2,290
  • 4
  • 14
  • 29