I want to generate a table as below in python with pandas:
January February
target achieved target achieved
North 23 11 30 29
Center 30 9 27 20
South 14 10 10 10
So that I can plot the chart as below:
I started coding as below but I don't know how to continue with the code:
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')

