|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "code",
|
5 |
| - "execution_count": 1, |
| 5 | + "execution_count": 13, |
6 | 6 | "id": "30627a53-3b54-4e00-98a8-9283034fa572",
|
7 | 7 | "metadata": {},
|
8 | 8 | "outputs": [],
|
|
14 | 14 | },
|
15 | 15 | {
|
16 | 16 | "cell_type": "code",
|
17 |
| - "execution_count": 2, |
18 |
| - "id": "38862ce2-4723-41e3-ab29-bcf76e1248e7", |
| 17 | + "execution_count": 14, |
| 18 | + "id": "f10cbeca", |
19 | 19 | "metadata": {},
|
20 | 20 | "outputs": [],
|
| 21 | + "source": [ |
| 22 | + "import pipelines.config.config as test" |
| 23 | + ] |
| 24 | + }, |
| 25 | + { |
| 26 | + "cell_type": "code", |
| 27 | + "execution_count": 15, |
| 28 | + "id": "1fb5871d", |
| 29 | + "metadata": {}, |
| 30 | + "outputs": [ |
| 31 | + { |
| 32 | + "data": { |
| 33 | + "text/plain": [ |
| 34 | + "['__builtins__',\n", |
| 35 | + " '__cached__',\n", |
| 36 | + " '__doc__',\n", |
| 37 | + " '__file__',\n", |
| 38 | + " '__loader__',\n", |
| 39 | + " '__name__',\n", |
| 40 | + " '__package__',\n", |
| 41 | + " '__spec__',\n", |
| 42 | + " 'current_dir',\n", |
| 43 | + " 'dotenv_path',\n", |
| 44 | + " 'load_dotenv',\n", |
| 45 | + " 'os']" |
| 46 | + ] |
| 47 | + }, |
| 48 | + "execution_count": 15, |
| 49 | + "metadata": {}, |
| 50 | + "output_type": "execute_result" |
| 51 | + } |
| 52 | + ], |
| 53 | + "source": [ |
| 54 | + "dir(test)" |
| 55 | + ] |
| 56 | + }, |
| 57 | + { |
| 58 | + "cell_type": "code", |
| 59 | + "execution_count": 16, |
| 60 | + "id": "38862ce2-4723-41e3-ab29-bcf76e1248e7", |
| 61 | + "metadata": {}, |
| 62 | + "outputs": [ |
| 63 | + { |
| 64 | + "ename": "ImportError", |
| 65 | + "evalue": "cannot import name 'load_env_variables' from 'pipelines.config.config' (C:\\Users\\nicol\\Documents\\DataForGood\\13_rendre_visible_pollution_eau_potable\\fork\\13_pollution_eau\\pipelines\\config\\config.py)", |
| 66 | + "output_type": "error", |
| 67 | + "traceback": [ |
| 68 | + "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", |
| 69 | + "\u001b[1;31mImportError\u001b[0m Traceback (most recent call last)", |
| 70 | + "Cell \u001b[1;32mIn[16], line 2\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[38;5;66;03m# nécéssaire pour load le .env\u001b[39;00m\n\u001b[1;32m----> 2\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mpipelines\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mconfig\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mconfig\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m load_env_variables\n\u001b[0;32m 3\u001b[0m load_env_variables()\n", |
| 71 | + "\u001b[1;31mImportError\u001b[0m: cannot import name 'load_env_variables' from 'pipelines.config.config' (C:\\Users\\nicol\\Documents\\DataForGood\\13_rendre_visible_pollution_eau_potable\\fork\\13_pollution_eau\\pipelines\\config\\config.py)" |
| 72 | + ] |
| 73 | + } |
| 74 | + ], |
21 | 75 | "source": [
|
22 | 76 | "# nécéssaire pour load le .env\n",
|
23 |
| - "import pipelines.config.config" |
| 77 | + "from pipelines.config.config import load_env_variables\n", |
| 78 | + "\n", |
| 79 | + "load_env_variables()" |
24 | 80 | ]
|
25 | 81 | },
|
26 | 82 | {
|
27 | 83 | "cell_type": "code",
|
28 |
| - "execution_count": 3, |
| 84 | + "execution_count": 17, |
29 | 85 | "id": "d133d716-172f-4273-ad61-f4bc88cf9413",
|
30 | 86 | "metadata": {},
|
31 | 87 | "outputs": [],
|
|
44 | 100 | },
|
45 | 101 | {
|
46 | 102 | "cell_type": "code",
|
47 |
| - "execution_count": 3, |
| 103 | + "execution_count": 18, |
48 | 104 | "id": "f92361d8-8b48-40a4-a6c6-e91e9b5f0fae",
|
49 | 105 | "metadata": {},
|
50 | 106 | "outputs": [],
|
|
54 | 110 | },
|
55 | 111 | {
|
56 | 112 | "cell_type": "code",
|
57 |
| - "execution_count": null, |
| 113 | + "execution_count": 19, |
58 | 114 | "id": "6796b3fc-9332-429c-8217-6661dd7dd08c",
|
59 | 115 | "metadata": {},
|
60 | 116 | "outputs": [],
|
|
64 | 120 | },
|
65 | 121 | {
|
66 | 122 | "cell_type": "code",
|
67 |
| - "execution_count": null, |
| 123 | + "execution_count": 20, |
68 | 124 | "id": "eb314161-952b-4a68-875e-de52ce042578",
|
69 | 125 | "metadata": {},
|
70 |
| - "outputs": [], |
| 126 | + "outputs": [ |
| 127 | + { |
| 128 | + "data": { |
| 129 | + "text/html": [ |
| 130 | + "<div>\n", |
| 131 | + "<style scoped>\n", |
| 132 | + " .dataframe tbody tr th:only-of-type {\n", |
| 133 | + " vertical-align: middle;\n", |
| 134 | + " }\n", |
| 135 | + "\n", |
| 136 | + " .dataframe tbody tr th {\n", |
| 137 | + " vertical-align: top;\n", |
| 138 | + " }\n", |
| 139 | + "\n", |
| 140 | + " .dataframe thead th {\n", |
| 141 | + " text-align: right;\n", |
| 142 | + " }\n", |
| 143 | + "</style>\n", |
| 144 | + "<table border=\"1\" class=\"dataframe\">\n", |
| 145 | + " <thead>\n", |
| 146 | + " <tr style=\"text-align: right;\">\n", |
| 147 | + " <th></th>\n", |
| 148 | + " <th>Name</th>\n", |
| 149 | + " <th>Age</th>\n", |
| 150 | + " <th>City</th>\n", |
| 151 | + " </tr>\n", |
| 152 | + " </thead>\n", |
| 153 | + " <tbody>\n", |
| 154 | + " <tr>\n", |
| 155 | + " <th>0</th>\n", |
| 156 | + " <td>Alice</td>\n", |
| 157 | + " <td>25</td>\n", |
| 158 | + " <td>New York</td>\n", |
| 159 | + " </tr>\n", |
| 160 | + " <tr>\n", |
| 161 | + " <th>1</th>\n", |
| 162 | + " <td>Bob</td>\n", |
| 163 | + " <td>30</td>\n", |
| 164 | + " <td>Los Angeles</td>\n", |
| 165 | + " </tr>\n", |
| 166 | + " <tr>\n", |
| 167 | + " <th>2</th>\n", |
| 168 | + " <td>Charlie</td>\n", |
| 169 | + " <td>35</td>\n", |
| 170 | + " <td>Chicago</td>\n", |
| 171 | + " </tr>\n", |
| 172 | + " </tbody>\n", |
| 173 | + "</table>\n", |
| 174 | + "</div>" |
| 175 | + ], |
| 176 | + "text/plain": [ |
| 177 | + " Name Age City\n", |
| 178 | + "0 Alice 25 New York\n", |
| 179 | + "1 Bob 30 Los Angeles\n", |
| 180 | + "2 Charlie 35 Chicago" |
| 181 | + ] |
| 182 | + }, |
| 183 | + "execution_count": 20, |
| 184 | + "metadata": {}, |
| 185 | + "output_type": "execute_result" |
| 186 | + } |
| 187 | + ], |
71 | 188 | "source": [
|
72 | 189 | "storage_client.download_object(\"test/test.csv\", \"download_test.csv\")\n",
|
73 | 190 | "pd.read_csv(\"download_test.csv\")"
|
|
153 | 270 | ],
|
154 | 271 | "metadata": {
|
155 | 272 | "kernelspec": {
|
156 |
| - "display_name": ".venv", |
| 273 | + "display_name": "Python 3 (ipykernel)", |
157 | 274 | "language": "python",
|
158 | 275 | "name": "python3"
|
159 | 276 | },
|
|
167 | 284 | "name": "python",
|
168 | 285 | "nbconvert_exporter": "python",
|
169 | 286 | "pygments_lexer": "ipython3",
|
170 |
| - "version": "3.12.5" |
| 287 | + "version": "3.12.7" |
171 | 288 | }
|
172 | 289 | },
|
173 | 290 | "nbformat": 4,
|
|
0 commit comments