Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 75 additions & 8 deletions your-code/main.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -24,11 +25,12 @@
"outputs": [],
"source": [
"\"\"\"\n",
"your solution here\n",
"The statements that are the first, third, and forth\n",
"\"\"\""
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -49,11 +51,18 @@
"outputs": [],
"source": [
"\"\"\"\n",
"your solution here\n",
"10/30\n",
"\n",
"10/29\n",
"\n",
"11/28\n",
"\n",
"12/30\n",
"\"\"\""
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -75,11 +84,12 @@
"outputs": [],
"source": [
"\"\"\"\n",
"your solution here\n",
"10 %\n",
"\"\"\""
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -102,11 +112,68 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Men</th>\n",
" <th>Women</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>yes</th>\n",
" <td>324</td>\n",
" <td>351</td>\n",
" </tr>\n",
" <tr>\n",
" <th>no</th>\n",
" <td>156</td>\n",
" <td>169</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Men Women\n",
"yes 324 351\n",
"no 156 169"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# your code here"
"# your code here\n",
"import pandas as pd\n",
"data = {\"Men\":{\"yes\":324,\"no\":156}, \"Women\":{\"yes\":351,\"no\":169}}\n",
"\n",
"data = pd.DataFrame(data)\n",
"\n",
"data"
]
},
{
Expand All @@ -116,7 +183,7 @@
"outputs": [],
"source": [
"\"\"\"\n",
"your solution here\n",
"Yes the events are independent because the results dont vary that much from being a man or a woman responding\n",
"\"\"\""
]
}
Expand All @@ -137,7 +204,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.2"
"version": "3.11.2"
}
},
"nbformat": 4,
Expand Down