Dataframes: How to conditionally remove rows based on data values?

DataFrames has a filter function build in. But note that as mentioned above, filter keeps rows, rather than removes them.

julia> df = DataFrame(A = ["X", "X", "Y", "Y"], B = ["C", "C", "C", "D"])
4×2 DataFrame
│ Row │ A      │ B      │
│     │ String │ String │
├─────┼────────┼────────┤
│ 1   │ X      │ C      │
│ 2   │ X      │ C      │
│ 3   │ Y      │ C      │
│ 4   │ Y      │ D      │

julia> filter(row -> !(row.A == "Y" && row.B == "D"),  df)
3×2 DataFrame
│ Row │ A      │ B      │
│     │ String │ String │
├─────┼────────┼────────┤
│ 1   │ X      │ C      │
│ 2   │ X      │ C      │
│ 3   │ Y      │ C      │
4 Likes