Skip to content
Merged
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
18 changes: 11 additions & 7 deletions src/notebooks/visualization_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
]
},
{
Expand Down Expand Up @@ -82,7 +86,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x15cfc4d0e30>"
"<IPython.lib.display.IFrame at 0x122767770>"
]
},
"metadata": {},
Expand Down Expand Up @@ -147,7 +151,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 15,
"id": "c0b7d44e",
"metadata": {},
"outputs": [
Expand All @@ -166,7 +170,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x15cf73437d0>"
"<IPython.lib.display.IFrame at 0x127367770>"
]
},
"metadata": {},
Expand All @@ -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",
Expand Down Expand Up @@ -214,7 +218,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"display_name": "venv (3.12.2)",
"language": "python",
"name": "python3"
},
Expand All @@ -228,7 +232,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.2"
}
},
"nbformat": 4,
Expand Down
Loading