|
10 | 10 | }, |
11 | 11 | { |
12 | 12 | "cell_type": "code", |
13 | | - "execution_count": null, |
| 13 | + "execution_count": 5, |
14 | 14 | "id": "a65fa6c7-24f9-4fb6-8382-096f3c487d10", |
15 | 15 | "metadata": {}, |
16 | | - "outputs": [], |
| 16 | + "outputs": [ |
| 17 | + { |
| 18 | + "ename": "ModuleNotFoundError", |
| 19 | + "evalue": "No module named 'src'", |
| 20 | + "output_type": "error", |
| 21 | + "traceback": [ |
| 22 | + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
| 23 | + "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)", |
| 24 | + "Cell \u001b[0;32mIn[5], line 10\u001b[0m\n\u001b[1;32m 7\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01msys\u001b[39;00m\n\u001b[1;32m 8\u001b[0m \u001b[38;5;66;03m# sys.path.append(\"/home/jovyan/shared/service-data\")\u001b[39;00m\n\u001b[0;32m---> 10\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01msrc\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mclean\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m clean_percentage, normalize_string, standardize_column_names, clean_fiscal_yr\n\u001b[1;32m 11\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01msrc\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mload\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m load_csv_from_raw\n\u001b[1;32m 12\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01msrc\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mexport\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m export_to_csv\n", |
| 25 | + "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'src'" |
| 26 | + ] |
| 27 | + } |
| 28 | + ], |
17 | 29 | "source": [ |
18 | 30 | "import pandas as pd\n", |
19 | 31 | "import numpy as np\n", |
|
32 | 44 | }, |
33 | 45 | { |
34 | 46 | "cell_type": "code", |
35 | | - "execution_count": 43, |
| 47 | + "execution_count": 4, |
36 | 48 | "id": "048e8db3-f8e2-45f0-a9de-5ca5bc0fe351", |
37 | 49 | "metadata": {}, |
38 | 50 | "outputs": [ |
39 | 51 | { |
40 | | - "name": "stdout", |
41 | | - "output_type": "stream", |
42 | | - "text": [ |
43 | | - "Exported dept.csv to /home/jovyan/shared/service-data/outputs/utils\n", |
44 | | - "Exported si.csv to /home/jovyan/shared/service-data/outputs\n" |
| 52 | + "ename": "NameError", |
| 53 | + "evalue": "name 'merge_si' is not defined", |
| 54 | + "output_type": "error", |
| 55 | + "traceback": [ |
| 56 | + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
| 57 | + "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", |
| 58 | + "Cell \u001b[0;32mIn[4], line 12\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[38;5;66;03m# File paths for outputs\u001b[39;00m\n\u001b[1;32m 6\u001b[0m data_files \u001b[38;5;241m=\u001b[39m {\n\u001b[1;32m 7\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mrbpo\u001b[39m\u001b[38;5;124m\"\u001b[39m: parent_dir \u001b[38;5;241m/\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124minputs\u001b[39m\u001b[38;5;124m\"\u001b[39m \u001b[38;5;241m/\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mrbpo.csv\u001b[39m\u001b[38;5;124m\"\u001b[39m,\n\u001b[1;32m 8\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124morg_var\u001b[39m\u001b[38;5;124m\"\u001b[39m: parent_dir \u001b[38;5;241m/\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124minputs\u001b[39m\u001b[38;5;124m\"\u001b[39m \u001b[38;5;241m/\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124morg_var.csv\u001b[39m\u001b[38;5;124m\"\u001b[39m,\n\u001b[1;32m 9\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mserv_prog\u001b[39m\u001b[38;5;124m\"\u001b[39m: parent_dir \u001b[38;5;241m/\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124minputs\u001b[39m\u001b[38;5;124m\"\u001b[39m \u001b[38;5;241m/\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mserv_prog.csv\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 10\u001b[0m }\n\u001b[0;32m---> 12\u001b[0m si \u001b[38;5;241m=\u001b[39m \u001b[43mmerge_si\u001b[49m()\n\u001b[1;32m 13\u001b[0m rbpo \u001b[38;5;241m=\u001b[39m pd\u001b[38;5;241m.\u001b[39mread_csv(data_files[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mrbpo\u001b[39m\u001b[38;5;124m\"\u001b[39m])\n\u001b[1;32m 14\u001b[0m serv_prog \u001b[38;5;241m=\u001b[39m pd\u001b[38;5;241m.\u001b[39mread_csv(data_files[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mserv_prog\u001b[39m\u001b[38;5;124m\"\u001b[39m])\n", |
| 59 | + "\u001b[0;31mNameError\u001b[0m: name 'merge_si' is not defined" |
45 | 60 | ] |
46 | 61 | } |
47 | 62 | ], |
|
65 | 80 | "rbpo['fiscal_yr'] = rbpo['fiscal_yr'].apply(clean_fiscal_yr)" |
66 | 81 | ] |
67 | 82 | }, |
| 83 | + { |
| 84 | + "cell_type": "code", |
| 85 | + "execution_count": 3, |
| 86 | + "id": "9a18f4e3", |
| 87 | + "metadata": {}, |
| 88 | + "outputs": [ |
| 89 | + { |
| 90 | + "ename": "NameError", |
| 91 | + "evalue": "name 'si' is not defined", |
| 92 | + "output_type": "error", |
| 93 | + "traceback": [ |
| 94 | + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
| 95 | + "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", |
| 96 | + "Cell \u001b[0;32mIn[3], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43msi\u001b[49m\n", |
| 97 | + "\u001b[0;31mNameError\u001b[0m: name 'si' is not defined" |
| 98 | + ] |
| 99 | + } |
| 100 | + ], |
| 101 | + "source": [ |
| 102 | + "si" |
| 103 | + ] |
| 104 | + }, |
68 | 105 | { |
69 | 106 | "cell_type": "markdown", |
70 | 107 | "id": "77e12a73-f357-4834-a99f-eab56fcc87dd", |
|
192 | 229 | ], |
193 | 230 | "metadata": { |
194 | 231 | "kernelspec": { |
195 | | - "display_name": "Python 3 (ipykernel)", |
| 232 | + "display_name": "Python 3", |
196 | 233 | "language": "python", |
197 | 234 | "name": "python3" |
198 | 235 | }, |
|
206 | 243 | "name": "python", |
207 | 244 | "nbconvert_exporter": "python", |
208 | 245 | "pygments_lexer": "ipython3", |
209 | | - "version": "3.12.8" |
| 246 | + "version": "3.12.1" |
210 | 247 | } |
211 | 248 | }, |
212 | 249 | "nbformat": 4, |
|
0 commit comments