为pandas DataFrame 生成多序列条状图

import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
data = {'series1':[1,3,4,3,5],

'series2':[2,4,5,2,4],

'series3':[3,2,3,1,3]}
df = pd.DataFrame(data)
df.plot(kind='barh')
plt.show()

posted @ 2020-06-13 21:56  逐梦无惧_数据分析  阅读(437)  评论(0编辑  收藏  举报