Say I have a data frame with 100+ columns, how would I go about dropping, say, the last 15 columns?
Is there a better way than typing: df.drop([column1,column2,...,column15])
? I have to input the names of all of the columns here. Is there not a way I can sort of slice, like something like [column1 : column15]
?