import matplotlib.pyplot as plt
import pandas as pd
plt.figure()
values = [[1, 2], [2, 5]]
df2 = pd.DataFrame(values, columns=['Type A', 'Type B'], index=['Index 1',
    'Index 2'])
df2.plot(lw=2, colormap='jet', marker='.', markersize=10, title=
    'Video streaming dropout by category')
plt.xlabel('xlabel')
plt.ylabel('ylabel')
plt.show()
Add x and y labels to a pandas plot