How to do a graph in Python? (and proper terminology) - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: How to do a graph in Python? (and proper terminology) (/thread-31599.html) |
How to do a graph in Python? (and proper terminology) - jpy - Dec-21-2020 Hi everyone - I have a few questions I hope you can help me with.
I also ran the code below: pd.value_counts(excl['Pop']).plot.bar()This code works but the graph is the same all across when it shouldn't. I would like to sum all values found in the 'Pop' column and group by the 'State' column. RE: How to do a graph in Python? (and proper terminology) - jefsummers - Dec-23-2020 Yes, they are libraries. Pandas documentation: https://pandas.pydata.org/pandas-docs/stable/reference/index.html Numpy reference: https://numpy.org/doc/stable/reference/index.html Graphing with matplotlib: https://matplotlib.org/3.3.3/contents.html These are big topics, there are a number of books written about Pandas/Numpy/Matplotlib/Scikit-Learn RE: How to do a graph in Python? (and proper terminology) - codeto - Dec-23-2020 (Dec-21-2020, 11:43 PM)jpy Wrote: Hi everyone - I have a few questions I hope you can help me with. In Python they are often called modules, but libraries would be the same. To make a graph in Python you have several options like matplotlib, plotly, bokeh, seaborn, altair and pygal. Matplotlib is one of the more popular modules. Some examples: matplotlib, seaborn, altair, plotly Not sure if I understand correctly, but Pandas has a sum value, you can fetch all values like this X = df['B']where B is your column name. Then call sum() on it |