Wählen Sie Spalten aus DataFrame Pandas aus
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"]]
df1 = df.iloc[:,0:2] # Remember that Python does not slice inclusive of the ending index.