Lassen Sie jede andere Spalte Pandas fallen
#We would like to drop every other column
data = data.loc[:, np.arange(len(data.columns)) %2 == 0]
M.U
#We would like to drop every other column
data = data.loc[:, np.arange(len(data.columns)) %2 == 0]