From 4e9ca5be067af0429a2ff152e7bb4350e4107dcb Mon Sep 17 00:00:00 2001 From: dmorton714 Date: Tue, 12 Aug 2025 09:42:23 -0400 Subject: [PATCH] cleaned up to run rounded % --- src/notebooks/visualization_examples.ipynb | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/notebooks/visualization_examples.ipynb b/src/notebooks/visualization_examples.ipynb index c40b6af..a322730 100644 --- a/src/notebooks/visualization_examples.ipynb +++ b/src/notebooks/visualization_examples.ipynb @@ -27,6 +27,10 @@ "source": [ "import pandas as pd\n", "import plotly.express as px\n", + "import os\n", + "import sys\n", + "parent_dir = os.path.abspath(\"..\")\n", + "sys.path.append(parent_dir)\n", "from dash import Dash, dcc, html, Input, Output\n", "from most_common_pathways_taken_data import Most_common_pathways_taken_data\n", "from completion_rate_data import Completion_rate_data\n", @@ -50,7 +54,7 @@ "metadata": {}, "outputs": [], "source": [ - "cleaner = EnrollmentsCleaning(pd.read_excel('Data\\\\Raw\\\\ARC Enrollments.xlsx'))\n" + "cleaner = EnrollmentsCleaning(pd.read_excel('../../data/ARC_Enrollments.xlsx'))\n" ] }, { @@ -82,7 +86,7 @@ " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -147,7 +151,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 15, "id": "c0b7d44e", "metadata": {}, "outputs": [ @@ -166,7 +170,7 @@ " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -178,7 +182,7 @@ " app2 = Dash(__name__)\n", " # Const\n", " data_class = Completion_rate_data(cleaner.Get_clean_data())\n", - " completion_df = data_class.Get_completion_percentages()\n", + " completion_df = data_class.Get_completion_percentages().round(2)\n", " options = data_class.Get_pathways_name(completion_df)\n", "\n", " # Display\n", @@ -214,7 +218,7 @@ ], "metadata": { "kernelspec": { - "display_name": "venv", + "display_name": "venv (3.12.2)", "language": "python", "name": "python3" }, @@ -228,7 +232,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.6" + "version": "3.12.2" } }, "nbformat": 4,