I have a dataFrame that has a column named
'linea' . I want to filter the dataFrame only with the lines that have the word
"GRANEL" in its content and discard all other lines. To filter currently I use the code:
lista_produccion_terminado_granel = lista_produccion_terminado[(lista_produccion_terminado['linea']=='P3 EMB. A GRANEL')]
But this only serves me if the entire chain is the same. If there is a cell that has the value
"P1 EMB.A GRANEL" it no longer works.
Can you suggest how to filter the dataFrame using part of the string in the condition?