Python Forum

Full Version: Ploting single column with multiple category
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I have a column in a dataframe:

eg:
label
----------
1
0
-1

I want to convert in bar graph with x axis have 1 as Positive, 0 as Zero and -1 as negative and y axis is about their count %. in abve case it will be 33.33 %each. Help please.
Would need to see your code, to see how your data is stored/structured.

That said, would point you to matplotlib as the library you will likely find most useful.