human
Select multiple ranges of columns in Pandas DataFrame
assistant
Here is some code to select multiple ranges of columns 1-10, 15, 17, and 50-100 in pandas dataframe `df`

df.iloc[:, (np.r_[1:10, (15), (17), 50:100])]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.