4
I have a spreadsheet with multiple import data. The problem is always the format as the data comes. For example, I have a column called "Imported Goods" that has values like the below:
1 X 40 CONTAINERS CONTAINING 40 BAGS OF FLUTRIAFOL TECNICO SINON FLUTRIAFOL 97% TECH
By this description, I know that the imported product in this case is the Flutriafol. In excel, I used the combination below to take the values of this column and return only the product in another:
IF(ISNUMBER(SEARCH("FLUTRIAFOL", colunaX)), "Flutriafol", "Não identificado")
It worked well, but I wanted to do it now on Python, because it seems more suitable when there are many possibilities of values (and it is also my only resource available today).
I already know how to upload my base on Python and import the pandas to help me with the treatment, but I have no idea which function/command I could use to do this operation of finding a value in one column and returning it in another.
Thank you, Paulo!
– Caique Barreto