Guest User

Untitled

a guest
Jan 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. M D Y
  2. 5 6 1990
  3. 5 7 1990
  4. 5 8 1990
  5. 5 9 1990
  6.  
  7. pd['date]=pd.to_datetime((df.year*10000+df.month*100+df.day).apply(str),format='%Y%m%d')
  8.  
  9. date
  10. 1990-6-5
  11. 1990-7-5
  12. 1990-8-5
  13. 1990-9-5
  14.  
  15. W D Y
  16. 52 6 1990
  17. 12 7 1990
  18. 18 8 1990
  19. 1 9 1990
Add Comment
Please, Sign In to add comment