I have a pandas DataFrame with 4 columns and I want to create a new DataFrame that only has three of the columns. This question is similar
columns by index:
# selected column index: 1, 6, 7 new = old.iloc[: , [1, 6, 7]].copy()