Created
April 12, 2020 10:10
-
-
Save FelixChop/0709d749b6cf57f4ee51e2b92cef1492 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| def female_proportion(dataframe): | |
| return (dataframe.Sex=='female').sum() / len(dataframe) | |
| female_proportion(df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment