Use Python to make a grouped frequency distribution

Crystal X
3 min readAug 3, 2024

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:-

  1. Pandas to create the dataframe and process the data and
  2. Matplotlib to visualise the data.

I used pandas to create a small dataframe from locally produced data, which has three columns od data, being:-

  1. Name,
  2. Team, and
  3. Score.

--

--

Crystal X
Crystal X

Written by Crystal X

I have over five decades experience in the world of work, being in fast food, the military, business, non-profits, and the healthcare sector.

No responses yet