Я пробовал
Код: Выделить всё
df.apply(lambda row: row.astype(str).str.contains('substring').any(), axis=1)Подробнее здесь: https://stackoverflow.com/questions/790 ... -entire-df
Код: Выделить всё
df.apply(lambda row: row.astype(str).str.contains('substring').any(), axis=1)