pandas drop column by index range

Solutions on MaxInterview for pandas drop column by index range by the best coders in the world

showing results for - "pandas drop column by index range"
Luna
12 Jan 2020
1# drop columns 0 to 3
2droprange = list(range(0, 4))
3df.drop(df.columns[droprange], axis=1, inplace=True)