I have a data frame df with around 200 columns. I want to drop the columns with an index position from 50 to 90 and 120 to 170 with its name rather than its index position. How to do that.
I cannot use:
df.drop('column name', axis=1)
directly because there are so many columns to drop and I cannot really type each of its column names as in the above cases.
I am interested in knowing how to select the columns from particular column name column50 to another column name column90 and column120 to column170 rather than with the int