Hello.
I have a pandas dataframe one which I want to filter some rows according to a column dependent criterion. More specifically I want to only keep the rows whose values on column "room_type" contains the word "Entire".
I tried df["Entire" in df["room_type"]] which yields an error.
What's the proper way of accomplishing this?
I have a pandas dataframe one which I want to filter some rows according to a column dependent criterion. More specifically I want to only keep the rows whose values on column "room_type" contains the word "Entire".
I tried df["Entire" in df["room_type"]] which yields an error.
What's the proper way of accomplishing this?