Guest User

Untitled

a guest
Jan 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. +-------+----+
  2. |country|date|
  3. +-------+----+
  4. | A| 1|
  5. | A| 2|
  6. | A| 3|
  7. | B| 1|
  8. | B| 2|
  9. | B| 3|
  10. +-------+----+
  11.  
  12. +-------+----+
  13. |country|date|
  14. +-------+----+
  15. | A| 3|
  16. | B| 1|
  17. | B| 2|
  18. | B| 3|
  19. +-------+----+
  20.  
  21. df.filter("country != 'A' and date not in (1,2)")
Add Comment
Please, Sign In to add comment