Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +-------+----+
- |country|date|
- +-------+----+
- | A| 1|
- | A| 2|
- | A| 3|
- | B| 1|
- | B| 2|
- | B| 3|
- +-------+----+
- +-------+----+
- |country|date|
- +-------+----+
- | A| 3|
- | B| 1|
- | B| 2|
- | B| 3|
- +-------+----+
- df.filter("country != 'A' and date not in (1,2)")
Add Comment
Please, Sign In to add comment