2
it should be easy, but I’m not finding a solution! Here’s the thing:
Arquivo1 - with texts:
Doc Texto
doc1 Isto é um teste para substituições de palavras.
doc2 As casas são parecidas.
Arquivo2 - Reference:
Termo Termo_pai
é ser
substituições substituição
palavras palavra
as a
casas casa
são ser
parecidas parecida
How do I replace the words in Archive1 with the words found in Archive2 in the "Term" column by the "Thermo_parent" column"?
The result would be:
Archiv11:
Doc Texto
doc1 This was a test for substituting of word.
doc2 To home was similar.
That is, the words in bold, Arquivo1, were found in Arquivo2 in the column "Term" and replaced by the words that are in the column "Termo_pai".
Could someone help?
Thank you @Rui Barradas! I did the test with the example and it works, but when I apply my "Archive2" with 88,000 records, it takes a long time and I don’t see the changes. The file is a dataframe. I wonder what it might be?
– user2725174