1df1 = df.iloc[:,0:2] # Remember that Python does not slice inclusive of the ending index.
1#only the column names specified will be put into the new sub df
2#enter a minimum of one column name
3print(df[['column_name_1', 'column_name_2', ... , 'column_name_n']])