Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. >>> x.sort_index()
  2. 2 1
  3. 5 2
  4. 6 3
  5. 8 4
  6.  
  7. >>> z.sort_index()
  8. 1 0
  9. 2 1
  10. 3 0
  11. 4 0
  12. 5 2
  13. 6 3
  14. 7 0
  15. 8 4
  16.  
  17. >>> y = pd.Series([0 for i in range(0,8)])
  18. 0 0
  19. 1 0
  20. 2 0
  21. 3 0
  22. 4 0
  23. 5 0
  24. 6 0
  25. 7 0
  26.  
  27. >>> pd.concat([x,z],axis=0)
  28. 2 1
  29. 5 2
  30. 6 3
  31. 8 4
  32. 0 0
  33. 1 0
  34. 2 0
  35. 3 0
  36. 4 0
  37. 5 0
  38. 6 0
  39. 7 0
  40.  
  41. >>> pd.concat([x,z],axis=1)
  42. 0 1
  43. 0 NaN 0
  44. 1 NaN 0
  45. 2 1 0
  46. 3 NaN 0
  47. 4 NaN 0
  48. 5 2 0
  49. 6 3 0
  50. 7 NaN 0
  51. 8 4 NaN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement