Answers for "create a bar plot in python from dataframe"

4

plotting a bar chart with pandas

df = pd.DataFrame({'lab':['A', 'B', 'C'], 'val':[10, 30, 20]})
ax = df.plot.bar(x='lab', y='val', rot=0)
Posted by: Guest on May-12-2021

Code answers related to "create a bar plot in python from dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language