I have a DF with this columns:
v_caso_numero | consulta_descripcion |
---|---|
1 | Buen día! Junto con saludar, aún no tengo reem... |
2 | Contrata para su casa instalación de puertas, |
3 | Consumidora llama por su reclamo NºR2021W58866.. |
And i have a list with this values
lista = ['STAR RENT A CAR', 'FERRETERIA MAPANI', 'AUTOMOTORA CARLOS CASTEL', 'LECHERA LONGAVI', 'GEVECON - INMOBILIARIA', 'FERCAR', 'SERVICIO AUTOMOTRIZ VELOZO', 'COMERCIAL MARIA MAGDALENA OLAZABAL (MO-STORE)', 'IMPORTADORA YOEMAR SOCIEDAD LTDA.', 'ITALCAR', 'VICTOR SANCHEZ VALENZUELA', 'INNOVA', 'DIPA REPUESTOS S.A.', 'TIENDA MALDONADO'...]
I need to find values from the list, in the df['consulta_descripcion'] column.
I'm using this code:
df['coincidencias'] = df['consulta_descripcion'].str.findall('|'.join(lista),flags=re.IGNORECASE)
but this error appears:
error: nothing to repeat at position 533835
Please help me to solve this issue.