diff --git a/Notebook.ipynb b/Notebook.ipynb index 05308c16ccd1a69645c41d5a5e7ce67118e1e13c..4f19d8e1421244f94d2e6fc7f819288e7dcab3f9 100644 --- a/Notebook.ipynb +++ b/Notebook.ipynb @@ -21,14 +21,10 @@ "metadata": {}, "outputs": [ { - "ename": "ModuleNotFoundError", - "evalue": "No module named 'src.Dataset'", - "output_type": "error", - "traceback": [ - "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[1;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)", - "Cell \u001b[1;32mIn[1], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39msrc\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mDataset\u001b[39;00m \u001b[39mimport\u001b[39;00m Dataset \n\u001b[0;32m 3\u001b[0m dataset \u001b[39m=\u001b[39m Dataset(\u001b[39m\"\u001b[39m\u001b[39mdata\u001b[39m\u001b[39m\\\u001b[39m\u001b[39mGamingStudy_data.csv\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[0;32m 4\u001b[0m \u001b[39mprint\u001b[39m(dataset)\n", - "\u001b[1;31mModuleNotFoundError\u001b[0m: No module named 'src.Dataset'" + "name": "stdout", + "output_type": "stream", + "text": [ + "<src.Dataset.Dataset object at 0x000002836CA9DC60>\n" ] } ], @@ -62,15 +58,29 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "'\\n4 Plots/Way to shows the distribution of \\nGender, \\nPlatform (where they found the survey)\\nGames Top 5 \\nand Console\\n\\n'" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# BAR PLOTS for Gender distribution \n", - "# BAR PLOTS FOR Plattform \n", - "# BAR PLOTS for GAMES\n", + "\"\"\"\n", + "4 Plots/Way to shows the distribution of \n", + "Gender, \n", + "Platform (where they found the survey)\n", + "Games Top 5 \n", + "and Console\n", "\n", - "# DIFFERENT Colored Bars " + "\"\"\"" ] }, { @@ -163,14 +173,13 @@ "+ Accept \n", "## Normalizing the Data \n", "\n", - "### \"Is_narcissist,\n", - "### \"Anxiety_score\"\n", - "### \"Is_competetive" + "### Creating [\"Is_narcissist\"]\n", + "### Creating [\"Anxiety_score\"]" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -187,10 +196,10 @@ "13461 0.125210\n", "13462 0.591783\n", "13463 0.243231\n", - "Length: 13050, dtype: float64" + "Length: 12838, dtype: float64" ] }, - "execution_count": 23, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -200,6 +209,13 @@ "dataset.get_combined_anxiety_score(dataset.get_dataframe())" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Creating [\"Is_competetive\"]" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -218,18 +234,29 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "'# SIDE BY SIDE PLOTS \\n# LEFT = LINE Graph distribution of Anxiety Score Related to Group\\n# RIGHT = Stacked Bars comparing the GROUP with = \\n# 1.[Work] - 4 Bars\\n# 2.[Degree] - 5 Bars\\n# 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")\\n'" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "\n", - "# SIDE BY SIDE PLOTS \n", + "\"\"\"# SIDE BY SIDE PLOTS \n", "# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n", "# RIGHT = Stacked Bars comparing the GROUP with = \n", "# 1.[Work] - 4 Bars\n", "# 2.[Degree] - 5 Bars\n", "# 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")\n", - "\n", + "\"\"\"\n", "#" ] }, @@ -243,16 +270,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "'# SIDE BY SIDE PLOTS \\n# LEFT = LINE Graph distribution of Anxiety Score Related to Group\\n# RIGHT = Stacked Bars comparing the GROUP with = \\n# 1.[Work] - 4 Bars\\n# 2.[Degree] - 5 Bars\\n# 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")'" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# SIDE BY SIDE PLOTS \n", + "\"\"\"# SIDE BY SIDE PLOTS \n", "# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n", "# RIGHT = Stacked Bars comparing the GROUP with = \n", "# 1.[Work] - 4 Bars\n", "# 2.[Degree] - 5 Bars\n", - "# 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")" + "# 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")\"\"\"" ] }, { @@ -264,16 +302,25 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, - "outputs": [], + "outputs": [ + { + "ename": "SyntaxError", + "evalue": "unterminated string literal (detected at line 6) (3054853027.py, line 6)", + "output_type": "error", + "traceback": [ + "\u001b[1;36m Cell \u001b[1;32mIn[6], line 6\u001b[1;36m\u001b[0m\n\u001b[1;33m # 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")\"\"\"\"\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m unterminated string literal (detected at line 6)\n" + ] + } + ], "source": [ - "# SIDE BY SIDE PLOTS \n", + "\"\"\"\"# SIDE BY SIDE PLOTS \n", "# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n", "# RIGHT = Stacked Bars comparing the GROUP with = \n", "# 1.[Work] - 4 Bars\n", "# 2.[Degree] - 5 Bars\n", - "# 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")" + "# 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")\"\"\"\"" ] }, { @@ -305,8 +352,9 @@ "metadata": {}, "outputs": [], "source": [ - "# Horizontal bar chart, one row for every reason for with top width\n", - "# Anxiety colored in for the amount of anxiety in that group \n" + "\"\"\" Horizontal bar chart, one row for every reason for with top width\n", + "# Anxiety colored in for the amount of anxiety in that group \n", + "\"\"\"" ] }, { @@ -322,11 +370,12 @@ "metadata": {}, "outputs": [], "source": [ - "#Overlaying Histogram \n", + "\n", + "\"\"\"#Overlaying Histogram \n", "\n", "# Histogram for the income level Y = %, X = low to high \n", "# One in Green for the income \n", - "# One in Red for the Anxiety for those people " + "# One in Red for the Anxiety for those people \"\"\"" ] }, { @@ -358,14 +407,14 @@ "metadata": {}, "outputs": [], "source": [ - "#### Analyze the countries amounting to Top 7 or 90% of the survey. \n", + "\"\"\"#### Analyze the countries amounting to Top 7 or 90% of the survey. \n", "\n", "\n", "#Q4.MAP PLOT = Most played game per country (Dont do it if its League everywhere. )\n", "#Q4 MAP PLOT = Heat Map with redder areas for more Anxiety in the country. \n", "#Q1.2 Grouped Bar Chart with the top game next to the \"Anxiety Score\"\n", "\n", - "#2 Scatter PLot like in the example " + "#2 Scatter PLot like in the example \"\"\"" ] } ],