In [12]:
import pandas as pd
from pandas import DataFrame
from pandas import Series
In [13]:
a=[1,2,3,4]
b=[3,4,5,6]
c=[5,6,7,8] 
In [14]:
index=Series(['Week1','Week2','Week3','Week4'],name='Car sales')
a=Series(a,name='ModelA')
b=Series(b,name='ModelB')
c=Series(c,name='ModelC')
In [15]:
df=pd.concat([a,b,c,index],axis=1)
In [16]:
df=df.set_index('Car sales')
In [17]:
df
Out[17]:
ModelA ModelB ModelC
Car sales
Week1 1 3 5
Week2 2 4 6
Week3 3 5 7
Week4 4 6 8
In [18]:
plt.pcolor(df)
plt.colorbar()
plt.xlabel('Model')
plt.ylabel('Weeks')
plt.show()