select column and row pandas code example
Example 1: pandas iloc select certain columns
dataframe.iloc[:,[1,2]]
Example 2: pandas df by row index
indices = [133, 22, 19, 203, 14, 1]
df_by_indices = df.iloc[indices, :]
dataframe.iloc[:,[1,2]]
indices = [133, 22, 19, 203, 14, 1]
df_by_indices = df.iloc[indices, :]