pandas how to get data that is equal to code example
Example 1: dataframe equals pandas
>>> exactly_equal = pd.DataFrame({1: [10], 2: [20]})
>>> exactly_equal
1 2
0 10 20
>>> df.equals(exactly_equal)
True
Example 2: pandas get value not equal to
df[~df['column_name'].isin(['value_1', 'value_2'])]