Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- January February
- target achieved target achieved
- North 23 11 30 29
- Center 30 9 27 20
- South 14 10 10 10
- import pandas as pd
- import matplotlib
- %matplotlib inline
- data = { "target":[23,30,14], "achieved":[11,9,10]}
- df=pd.DataFrame(data, index = ["North", "Center", "South"], columns = ['target', 'achieved'] )
- df
- target achieved
- North 23 11
- Center 30 9
- South 14 10
- df.plot(kind='bar')
Add Comment
Please, Sign In to add comment