I have a CSV dataset and I'm trying to select all rows where the "INCOME" column is equal to "<=50K" OR ">50K"
This is what I have but it returns only the column names without any rows.
df.loc[df.INCOME == '>50K',:]
My code basically says select all rows where INCOME column of the "df" dataset is equal to '>50K'
Any help please?