Guest User

Untitled

a guest
Jun 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. ['A312', 'A1', 'A2', 'A3', 'A419', 'A321', 'A323', 'A679', 'A319',
  2. 'A325',
  3. ...
  4. 'A812', 'A841', 'A835', 'A747', 'A814', 'A840', 'A843', 'A774', 'A850',
  5. 'A864']
  6.  
  7. print(variable)
  8.  
  9. import numpy as np
  10. import pandas as pd
  11.  
  12. In [204]: pd.options.display.max_rows = 20
  13.  
  14. In [205]: df = pd.DataFrame(np.random.randint(0,100,size=(30, 3)), columns=list('ABC'))
  15.  
  16. In [206]: df
  17. Out[206]:
  18. A B C
  19. 0 63 36 61
  20. 1 95 5 2
  21. 2 14 87 1
  22. 3 17 94 56
  23. 4 13 5 79
  24. 5 68 27 91
  25. 6 18 26 28
  26. 7 85 31 60
  27. 8 81 21 26
  28. 9 25 2 2
  29. .. .. .. ..
  30. 20 93 30 92
  31. 21 92 77 37
  32. 22 49 78 50
  33. 23 47 10 31
  34. 24 1 54 79
  35. 25 10 99 77
  36. 26 26 36 18
  37. 27 56 56 7
  38. 28 32 39 33
  39. 29 91 76 81
  40.  
  41. [30 rows x 3 columns]
  42.  
  43. In [207]: pd.options.display.max_rows = 100
  44.  
  45. In [208]: df
  46. Out[208]:
  47. A B C
  48. 0 63 36 61
  49. 1 95 5 2
  50. 2 14 87 1
  51. 3 17 94 56
  52. 4 13 5 79
  53. 5 68 27 91
  54. 6 18 26 28
  55. 7 85 31 60
  56. 8 81 21 26
  57. 9 25 2 2
  58. 10 70 3 2
  59. 11 64 13 81
  60. 12 37 11 27
  61. 13 75 9 1
  62. 14 11 57 39
  63. 15 8 76 11
  64. 16 18 81 64
  65. 17 28 31 40
  66. 18 36 69 91
  67. 19 58 36 80
  68. 20 93 30 92
  69. 21 92 77 37
  70. 22 49 78 50
  71. 23 47 10 31
  72. 24 1 54 79
  73. 25 10 99 77
  74. 26 26 36 18
  75. 27 56 56 7
  76. 28 32 39 33
  77. 29 91 76 81
Add Comment
Please, Sign In to add comment