Uzyskaj wszystkie kolumny o określonej nazwie w ciągu

cols = [col for col in df.columns if 'word' in col]
Sooi Versavel