Guest User

Untitled

a guest
Dec 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. January February
  2. target achieved target achieved
  3. North 23 11 30 29
  4. Center 30 9 27 20
  5. South 14 10 10 10
  6.  
  7. import pandas as pd
  8. import matplotlib
  9. %matplotlib inline
  10. data = { "target":[23,30,14], "achieved":[11,9,10]}
  11. df=pd.DataFrame(data, index = ["North", "Center", "South"], columns = ['target', 'achieved'] )
  12. df
  13.  
  14. target achieved
  15. North 23 11
  16. Center 30 9
  17. South 14 10
  18.  
  19. df.plot(kind='bar')
Add Comment
Please, Sign In to add comment