-
Notifications
You must be signed in to change notification settings - Fork 0
Proportions #199
Copy link
Copy link
Closed
Milestone
Description
oldoc63
opened on Oct 22, 2021
Issue body actions
- We can use the .value_counts() function to get a table of frequencies for a categorical variable.
- However, it is sometimes more useful to instead look at the proportion of values in each category.
- We can calculate proportions by dividing the frequency by the number of observations in the data:
- We can also calculate proportions using .value_counts() by setting the normalize parameter equal to True:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels