如何根据索引删除dataframe的多个列呢?核心代码逻辑: # 要删除的列,注意索引是从0开始的 x = [0, 2, 8, 9, 10, 11, 12] df.drop(df.columns[x], axis=1, inplace=True)