I have dataframe with >100 columns. I am trying to select the columns 0~32 and #83. It seems that 1 slice works fine with the code below.
df_new = df[df.columns[0:32]]
It does not work with 2 slices code below though. How do I fix the problem?
df_new = df[df.columns[0:32, 83]]