From 181285e556b28ffdbd3ea37888bd45d1b64a3c52 Mon Sep 17 00:00:00 2001 From: Alexandre Garanhao Date: Thu, 18 May 2023 15:11:52 +0100 Subject: [PATCH] lab done --- your-code/main.ipynb | 83 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 75 insertions(+), 8 deletions(-) diff --git a/your-code/main.ipynb b/your-code/main.ipynb index b8b7a9c..2465518 100644 --- a/your-code/main.ipynb +++ b/your-code/main.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -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": [ @@ -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": [ @@ -75,11 +84,12 @@ "outputs": [], "source": [ "\"\"\"\n", - "your solution here\n", + "10 %\n", "\"\"\"" ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -102,11 +112,68 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
MenWomen
yes324351
no156169
\n", + "
" + ], + "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" ] }, { @@ -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", "\"\"\"" ] } @@ -137,7 +204,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.2" + "version": "3.11.2" } }, "nbformat": 4,