SHARE
TWEET

Untitled

a guest Jan 12th, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. df =
  2.  
  3. ID   TYPE  DATETIME
  4. 1    A     12/18/2015 23:02:00
  5. 1    A     12/17/2015 12:00:09
  6. 1    A     12/18/2015 18:04:08
  7. 2    B     12/20/2015 15:03:05
  8. 2    B     12/18/2015 14:02:07
  9.    
  10. ID   TYPE  DATETIME
  11. 1    A     12/17/2015 12:00:09
  12. 1    A     12/18/2015 18:04:08
  13. 1    A     12/18/2015 23:02:00
  14. 2    B     12/18/2015 14:02:07
  15. 2    B     12/20/2015 15:03:05
  16.    
  17. df.groupby("ID").sort(...)
RAW Paste Data
Top