Filter a data frame if columns names have not a specific string

Viewed 30

If this

data_no_control.loc[:, data_no_control.columns.str.contains('NGS')]

takes values which columns have an 'NGS' in their names.

How can I take the values of columns which names have not 'NGS' in the name

0 Answers
Related