Seleccione columnas de DataFrame Pandas
df = df.iloc[:,0:2] # this selects first two columns
df = df[['column1', 'column2']]
Stupid Sandpiper
df = df.iloc[:,0:2] # this selects first two columns
df = df[['column1', 'column2']]
df = df[["Column_Name1", "Column_Name2"]]
dataframe.iloc[:,[1,2]]
df1 = df.iloc[:,0:2] # Remember that Python does not slice inclusive of the ending index.