I have a text that randomly has numerals and text for numbering. So the text can be:
20 trees will be planted of which ten will be oaks.
I want to replace all numerals that are in text with numbers, so I get:
20 trees will be planted of which 10 will be oaks.
I already have a csv (with the numbers as numerals and in text) which I could use to merge. I was thinking about putting every single word in the text in a list and the matching all words with the csv with a loop, but this will be very data heavy.
Any suggestions to do this in a clean way?