I am trying to find if an integer value exists in a DataFrame column:
When I try df[df['COLUMN'] == 196930], I get the rows of the DataFrame containing the column value as expected.
However, I am running into problems trying to use a conditional to find if the value is the column (and ultimately perform an action based on this condition):
if 196930 in df['COLUMN']:
...
...
...
It returns False even though this integer clearly exists in the DataFrame column, and I don't understand why this is happening. Thank you in advance.