📜  pandas 列不在列表中 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:30.962000             🧑  作者: Mango

代码示例2
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] = ...