Skip to content

Commit 2403b38

Browse files
committed
Update GC_LawSchoolAdmissionBar.ipynb
1 parent 5740966 commit 2403b38

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

notebooks/GC_LawSchoolAdmissionBar.ipynb

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,40 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": 2,
66
"metadata": {},
77
"outputs": [],
88
"source": [
99
"import pandas as pd\n",
1010
"import seaborn as sns\n",
1111
"import matplotlib.pyplot as plt\n",
12-
"from sklearn.preprocessing import LabelEncoder\n",
13-
"from helper_functions_GC import *"
12+
"from sklearn.preprocessing import LabelEncoder"
13+
]
14+
},
15+
{
16+
"cell_type": "code",
17+
"execution_count": 4,
18+
"metadata": {},
19+
"outputs": [
20+
{
21+
"ename": "ModuleNotFoundError",
22+
"evalue": "No module named 'python-synthpop'",
23+
"output_type": "error",
24+
"traceback": [
25+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
26+
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
27+
"Cell \u001b[0;32mIn[4], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mimportlib\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m import_module\n\u001b[0;32m----> 2\u001b[0m python_code \u001b[38;5;241m=\u001b[39m \u001b[43mimport_module\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mpython-synthpop\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m)\u001b[49m\n",
28+
"File \u001b[0;32m/opt/homebrew/Cellar/[email protected]/3.11.9_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py:126\u001b[0m, in \u001b[0;36mimport_module\u001b[0;34m(name, package)\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[38;5;28;01mbreak\u001b[39;00m\n\u001b[1;32m 125\u001b[0m level \u001b[38;5;241m+\u001b[39m\u001b[38;5;241m=\u001b[39m \u001b[38;5;241m1\u001b[39m\n\u001b[0;32m--> 126\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43m_bootstrap\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_gcd_import\u001b[49m\u001b[43m(\u001b[49m\u001b[43mname\u001b[49m\u001b[43m[\u001b[49m\u001b[43mlevel\u001b[49m\u001b[43m:\u001b[49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpackage\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mlevel\u001b[49m\u001b[43m)\u001b[49m\n",
29+
"File \u001b[0;32m<frozen importlib._bootstrap>:1204\u001b[0m, in \u001b[0;36m_gcd_import\u001b[0;34m(name, package, level)\u001b[0m\n",
30+
"File \u001b[0;32m<frozen importlib._bootstrap>:1176\u001b[0m, in \u001b[0;36m_find_and_load\u001b[0;34m(name, import_)\u001b[0m\n",
31+
"File \u001b[0;32m<frozen importlib._bootstrap>:1140\u001b[0m, in \u001b[0;36m_find_and_load_unlocked\u001b[0;34m(name, import_)\u001b[0m\n",
32+
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'python-synthpop'"
33+
]
34+
}
35+
],
36+
"source": [
37+
"from importlib import import_module\n",
38+
"python_code = import_module('python-synthpop')"
1439
]
1540
},
1641
{

0 commit comments

Comments
 (0)