Last active
May 28, 2018 15:20
-
-
Save kocur4d/8986542eee8834ff7b3c02e08c68ea73 to your computer and use it in GitHub Desktop.
Python stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# count the number of expected result | |
sum(record.outcome == 1 for record in data.records) | |
# Count the values | |
df.column_name.value_counts() | |
# or | |
df.groupby('column_name').count() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment