Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. Strings, Values, Letters
  2. Made up data, 55.0, A
  3. with long text strings for index, 125.5, B
  4. with long text strings for index, 85.5, B
  5. how does one, 1.3, A
  6. how does one, 12.3, A
  7. change the plot area to, 96.1, B
  8. fit all of this text in?, 0.2, B
  9. fit all of this text in?, 47.2, B
  10.  
  11. c=pd.read_csv('myfile.csv')
  12.  
  13. Strings Values Letters
  14. 0 Made up data 55.0 A
  15. 1 with long text strings for index 125.5 B
  16. 2 with long text strings for index 85.5 B
  17. 3 how does one 1.3 A
  18. 4 how does one 12.3 A
  19. 5 change the plot area to 96.1 B
  20. 6 fit all of this text in? 0.2 B
  21. 7 fit all of this text in? 47.2 B
  22.  
  23. g=c.groupby(u'Strings').sum()
  24.  
  25. Values
  26. Strings
  27. Made up data 55.0
  28. change the plot area to 96.1
  29. fit all of this text in? 47.4
  30. how does one 13.6
  31. with long text strings for index 211.0
  32.  
  33. g.plot(kind='bar')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement