col_list = ['Fx', 'Fy','Fz'] col_mask = ~(df.columns.isin(col_list)) # boolean list of whether each col in df is in col_list other_cols = data.columns[col_mask] df[other_cols] = ...