I have a excel file with different columns. I want to only show the lines that contain the word 'DUC' in the Column 'Comentário' .
df = pd.read_excel('lista1.xlsx')
coment = df['Comentário']
duc = coment.str.contains("DUC")
df[df['Comentário'] = coment.str.contains("DUC")]