Ploting single column with multiple category - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Ploting single column with multiple category (/thread-33778.html) |
Ploting single column with multiple category - drunkenneo - May-26-2021 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. RE: Ploting single column with multiple category - jefsummers - May-26-2021 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. |