SELECT COLUMN BY INDEX IN PANDAS code example
Example 1: pandas df by row index
indices = [133, 22, 19, 203, 14, 1]
df_by_indices = df.iloc[indices, :]
Example 2: loc and iloc in pandas
iloc - default indexes (system generated)
loc - table indexes or we manually given indexes