# A B C # 0 1 3 5 # 1 2 4 6 column_B = a_dataframe.iloc[:, 1] print(column_B) # OUTPUT # 0 3 # 1 4
#select columns with index positions 1 and 3 df.iloc[:, [1, 3]]