user10508414
user10508414

Reputation:

Plot the hist using matplotlib

Below is the dataframe

             Quantity   UnitPrice   CustomerID
Country         
Netherlands  200128     6492.55     34190538.0
EIRE         142637     48447.19    110391745.0
Germany      117448     37666.00    120075093.0
France       110480     43031.99    107648864.0
Australia    83653      4054.75     15693002.0

How to plot a histogram with condition x axis as country(rotate 90) and Quanity on Y axis

df.hist(x,y)

Upvotes: 2

Views: 30

Answers (1)

Andrea
Andrea

Reputation: 3077

You can try with this:

df.plot.bar(y='Quantity')

Here's the output: enter image description here

Upvotes: 1

Related Questions