how to get not equal records in dataframe python code example Example: pandas get value not equal to df[~df['column_name'].isin(['value_1', 'value_2'])]