Pandas xlabel does not show values

前端 未结 2 1464
旧巷少年郎
旧巷少年郎 2021-01-28 04:38

I have a pandas dataframe

jul.head()

which contains

However, when I try to plot my data, I can\'t figure out how to show my i

2条回答
  •  清酒与你
    2021-01-28 05:04

    Following should do:

    df1=pd.DataFrame({'config name':['small', 'medium', 'large'], 'value':[-.000127, .000169, -.000206]})
    plt.plot(df1.iloc[:,0], df1.iloc[:,1])
    plt.xlabel('Config name')
    plt.ylabel('Value')
    plt.legend('Value')
    

提交回复
热议问题