pandas loc for all columns and specific rows by value code example
Example 1: fetch row where column is equal to a value pandas
df.loc[df['column_name'] == 'value']
Example 2: pandas iloc select certain columns
dataframe.iloc[:,[1,2]]
df.loc[df['column_name'] == 'value']
dataframe.iloc[:,[1,2]]