I want to get all rows which DO NOT have a value of the "previous_page_path"
column in the set ("forbidden_val_1", "forbidden_val_2")
. I've tried this:
dfRefUrl.filter(dfRefUrl["previous_page_path"] in ("forbidden_val_1", "forbidden_val_2"))
but it crashes my program. Is there any way to do this kind of filtering?