pandas select rows equal to value code example
Example 1: fetch row where column is equal to a value pandas
df.loc[df['column_name'] == 'value']
Example 2: pandas get value not equal to
df[~df['column_name'].isin(['value_1', 'value_2'])]
df.loc[df['column_name'] == 'value']
df[~df['column_name'].isin(['value_1', 'value_2'])]