# drop columns 0 to 3 droprange = list(range(0, 4)) df.drop(df.columns[droprange], axis=1, inplace=True)