|
68 | 68 | "import folium\n", |
69 | 69 | "\n", |
70 | 70 | "m = folium.Map()\n", |
71 | | - "m.save(\"footprint.html\")" |
| 71 | + "m" |
72 | 72 | ] |
73 | 73 | }, |
74 | 74 | { |
|
81 | 81 | "import folium\n", |
82 | 82 | "\n", |
83 | 83 | "m = folium.Map(tiles=\"cartodb positron\")\n", |
84 | | - "m.save(\"footprint.html\")" |
| 84 | + "m" |
85 | 85 | ] |
86 | 86 | }, |
87 | 87 | { |
|
102 | 102 | "import folium\n", |
103 | 103 | "\n", |
104 | 104 | "m = folium.Map(location=(49.25, -123.12), tiles=\"cartodb positron\")\n", |
105 | | - "m.save(\"footprint.html\")" |
| 105 | + "m" |
106 | 106 | ] |
107 | 107 | }, |
108 | 108 | { |
|
115 | 115 | "import folium\n", |
116 | 116 | "\n", |
117 | 117 | "m = folium.Map(location=(30, 10), zoom_start=3, tiles=\"cartodb positron\")\n", |
118 | | - "m.save(\"footprint.html\")" |
| 118 | + "m" |
119 | 119 | ] |
120 | 120 | }, |
121 | 121 | { |
|
142 | 142 | "m = folium.Map(location=(30, 10), zoom_start=3, tiles=\"cartodb positron\")\n", |
143 | 143 | "folium.GeoJson(political_countries_url).add_to(m)\n", |
144 | 144 | "\n", |
145 | | - "m.save(\"footprint.html\")" |
| 145 | + "m" |
146 | 146 | ] |
147 | 147 | }, |
148 | 148 | { |
|
168 | 168 | "metadata": {}, |
169 | 169 | "outputs": [], |
170 | 170 | "source": [ |
171 | | - "import folium\n", |
172 | 171 | "import pandas as pd\n", |
173 | 172 | "\n", |
174 | 173 | "eco_footprints = pd.read_csv(\"footprint.csv\")\n", |
175 | | - "political_countries_url = (\n", |
176 | | - " \"http://geojson.xyz/naturalearth-3.3.0/ne_50m_admin_0_countries.geojson\"\n", |
177 | | - ")\n", |
178 | | - "\n", |
179 | | - "m = folium.Map(location=(30, 10), zoom_start=3, tiles=\"cartodb positron\")\n", |
180 | | - "folium.GeoJson(political_countries_url).add_to(m)\n", |
181 | 174 | "\n", |
182 | | - "m.save(\"footprint.html\")" |
| 175 | + "eco_footprints.head()" |
183 | 176 | ] |
184 | 177 | }, |
185 | 178 | { |
|
213 | 206 | " key_on=\"feature.properties.name\",\n", |
214 | 207 | ").add_to(m)\n", |
215 | 208 | "\n", |
216 | | - "m.save(\"footprint.html\")" |
| 209 | + "m" |
217 | 210 | ] |
218 | 211 | }, |
219 | 212 | { |
|
260 | 253 | " legend_name=\"Ecological footprint per capita\",\n", |
261 | 254 | ").add_to(m)\n", |
262 | 255 | "\n", |
263 | | - "m.save(\"footprint.html\")" |
| 256 | + "m" |
264 | 257 | ] |
265 | 258 | }, |
266 | 259 | { |
|
301 | 294 | " legend_name=\"Ecological footprint per capita\",\n", |
302 | 295 | ").add_to(m)\n", |
303 | 296 | "\n", |
304 | | - "m.save(\"footprint.html\")" |
| 297 | + "m" |
305 | 298 | ] |
306 | 299 | }, |
307 | 300 | { |
|
344 | 337 | ").add_to(m)\n", |
345 | 338 | "folium.LayerControl().add_to(m)\n", |
346 | 339 | "\n", |
347 | | - "m.save(\"footprint.html\")" |
| 340 | + "m" |
348 | 341 | ] |
349 | 342 | } |
350 | 343 | ], |
351 | 344 | "metadata": { |
352 | 345 | "kernelspec": { |
353 | | - "display_name": "Python 3", |
| 346 | + "display_name": "Python 3 (ipykernel)", |
354 | 347 | "language": "python", |
355 | 348 | "name": "python3" |
356 | 349 | }, |
|
365 | 358 | "name": "python", |
366 | 359 | "nbconvert_exporter": "python", |
367 | 360 | "pygments_lexer": "ipython3", |
368 | | - "version": "3.10.0 (default, Nov 16 2021, 09:16:07) [Clang 12.0.5 (clang-1205.0.22.9)]" |
| 361 | + "version": "3.11.0" |
369 | 362 | }, |
370 | 363 | "vscode": { |
371 | 364 | "interpreter": { |
|
0 commit comments