access data in pandas dataframe by index loc code example
Example 1: get column pandas
column = df["column_name"]
Example 2: pandas df by row index
indices = [133, 22, 19, 203, 14, 1]
df_by_indices = df.iloc[indices, :]
column = df["column_name"]
indices = [133, 22, 19, 203, 14, 1]
df_by_indices = df.iloc[indices, :]