Wybierz kolumny z Pandy DataFrame
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']]
df1 = df.iloc[:,0:2] # Remember that Python does not slice inclusive of the ending index.