Task: Filter DataFrame by "Does Not Contain" in Pandas
Task: Filter DataFrame by "Does Not Contain" in Pandas: a task in Terminal-Lego-15k (Harbor dataset). In pandas, you can filter a DataFrame to find rows where a column contains a specific string using df "col" .str.contains(word) . Your task is to implement the reverse operation: filter a…
The task
In pandas, you can filter a DataFrame to find rows where a column contains a specific string using `df["col"].str.contains(word)`. Your task is to implement the reverse operation: filter a DataFrame to find rows where a column **does NOT contain** a specific word.
Part of PrimeIntellect/Terminal-Lego-15k.