In my previous blog post I discussed how to use Python to create an ungrouped frequency distribution, and that post can be found here:- https://tracyrenee61.medium.com/use-python-to-make-an-ungrouped-frequency-distribution-18f81a88cb63
In this post I intend to show how to use Python to create a grouped frequency distribution, which entails a few more steps than creating an ungrouped frequency distribution. In addition,
I have created a post on how to use Excel to create a grouped frequency distribution, and that post can be found here:- https://medium.com/@tracyrenee61/how-to-make-a-grouped-frequency-distribution-in-excel-3d052ee5ea4f
I wrote the script for this blog post in Google Colab, which is a free online Jupyter Notebook hosted by Google.
Once the Jupyter Notebook was created, I imported the libraries that I would need to execute the program, being:-
- Pandas to create the dataframe and process the data and
- Matplotlib to visualise the data.
I used pandas to create a small dataframe from locally produced data, which has three columns od data, being:-
- Name,
- Team, and
- Score.