import matplotlib as plt import pandas as pd import numpy as np data = pd.Series(np.random.rand(16), index=list('abcdefghijklmnop')) # a 0.029757 # b 0.272419 # c 0.447357 # d 0.314266 # e 0.597517 # f 0.764892 # g 0.741955 # h 0.277052 # i 0.680357 # j 0.966261 # k 0.634952 # l 0.427652 # m 0.525143 # n 0.373020 # o 0.159163 # p 0.088350 # dtype: float64