Commit 9e8ad3ba authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Minor in 06

parent eac339df
......@@ -829,12 +829,14 @@
},
"outputs": [],
"source": [
"from pprint import pformat\n",
"\n",
"set_quartiers = set(gdf_quartiers['libelle'])\n",
"set_arbres = set(arbres['Point vert Quartier usuel'])\n",
"\n",
"def print_set_data(s: set):\n",
" \"\"\"Print set and its length\"\"\"\n",
" print(f\"{s} -> {len(s)}\")\n",
" print(f\"{pformat(s)} -> {len(s)}\")\n",
"\n",
"print_set_data(set_quartiers)\n",
"print_set_data(set_arbres)"
......@@ -910,7 +912,8 @@
"}\n",
"\n",
"for k, v in convertion_dict.items():\n",
" arbres['Point vert Quartier usuel'] = arbres['Point vert Quartier usuel'].replace(to_replace=k, value=v)\n",
" arbres['Point vert Quartier usuel'] = \\\n",
" arbres['Point vert Quartier usuel'].replace(to_replace=k, value=v)\n",
"\n",
"arbres"
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment