Probability, Data Science, Python, Python Programming, Statistics.
the counts of events into a DataFrame and change the column to item_counts. Then, we'll calculate the probability of each event by dividing the count by the total number of people in our hypothetical city (i.e., population: 1000). Optional: Create another column with abbreviations for test outcome