stembureau-meting/jupyter/stembureau_data.ipynb

5535 lines
1.6 MiB
Plaintext
Raw Normal View History

2022-03-29 17:09:40 +02:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Data gemeenteraadsverkiezingen 2022 Nederland\n",
"\n",
"Dit notebook is voor het verwerken van de data van de gemeenteraadsverkiezingen van 2022. Er zal hier stap voor stap door de data gelopen worden om het proces reproduceerbaar te maken voor latere verkiezingen. De eerste stap was de data ophalen van de bronnen, zowel de overheid als waar is mijn stemlokaal (voor geografische data van de stemlokalen). De bronnen gebruikt voor de data zijn voor de verkiezingen van 2022 is als volgt:\n",
2022-03-29 17:09:40 +02:00
"\n",
2022-04-12 16:39:06 +02:00
"- [Verkiezingsuitslagen Gemeenteraad 2022](https://data.overheid.nl/dataset/08b04bec-3332-4c76-bb0c-68bfaeb5df43)\n",
" - [Directe link naar uitslagen per gemeente CSV](https://data.overheid.nl/sites/default/files/dataset/08b04bec-3332-4c76-bb0c-68bfaeb5df43/resources/GR2022_2022-03-29T15.14.zip)\n",
" - [Directe link naar kandidatenlijst met uitslagen CSV](https://data.overheid.nl/sites/default/files/dataset/08b04bec-3332-4c76-bb0c-68bfaeb5df43/resources/GR2022_alle-kandidaten_2022-02-22T08.34.csv)\n",
2022-03-29 17:09:40 +02:00
"- [Waar is mijn stemlokaal stembureau data](https://waarismijnstemlokaal.nl/data)\n",
" - [Directe link naar waar is mijn stemlokaal gemeenteraad 2022 CSV (CKAN)](https://ckan.dataplatform.nl/datastore/dump/d6a1b4c4-73c8-457b-9b75-a38428bded68)\n",
" - [Verkiezingsuitslagen gemeenteraadsverkiezingen 2022 geodata (Volkskrant)](https://data.openstate.eu/dataset/verkiezingsuitslagen-gemeenteraadsverkiezingen-2022)\n",
" - [Directe link naar GEOJSON bestand](https://data.openstate.eu/dataset/a1767f1b-bf0c-409b-b3b1-3af9954b57f4/resource/413be255-5070-48f4-b631-895097976abb/download/2022gr.geo.json)\n",
"- [CBS Wijk- en buurtkaart 2021](https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2021)\n",
" - [Directe link naar zip bestand met SHP bestand er in](https://www.cbs.nl/-/media/cbs/dossiers/nederland-regionaal/wijk-en-buurtstatistieken/wijkbuurtkaart_2021_v1.zip)\n",
2022-04-12 16:39:06 +02:00
"- [CBS bevolkingsdichtheid kaart 100 bij 100 meter](https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/kaart-van-100-meter-bij-100-meter-met-statistieken)\n",
" - [Directe link naar 7z bestand met SHP bestand er in](https://www.cbs.nl/-/media/cbs/dossiers/nederland-regionaal/vierkanten/100/nl_vierkant_100meter_bij_100meter.7z)\n",
2022-04-12 16:39:06 +02:00
"- [CBS bevolkingsdichtheid kaart 500 bij 500 meter](https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/kaart-van-500-meter-bij-500-meter-met-statistieken)\n",
" - [Directe link naar 7z bestand met SHP bestand er in](https://www.cbs.nl/-/media/cbs/dossiers/nederland-regionaal/vierkanten/500/2021-cbs_vk500_2020_v1.zip)\n",
2022-05-03 13:06:50 +02:00
"- [CBS schatting van kiesgerechtigden per gemeente](https://www.cbs.nl/nl-nl/maatwerk/2020/52/schatting-van-het-aantal-kiesgerechtigden-in-nederland)\n",
2022-03-29 17:09:52 +02:00
"\n",
2022-04-20 13:03:38 +02:00
"De eerste stap die we moeten maken is de data importeren voor de analyse, daarna kunnen we kijken hoe goed de data is, hoe we het aan kunnen vullen, en wat er mee te doen. De makkelijkste structuur die we vonden was het geojson bestand van open state en de Volkskrant, daar staan alle stemlokalen al in een lijst, en we hebben een makkelijk framework om het te importeren; geopandas. We laden deze dan ook als eerste in."
2022-03-29 17:09:52 +02:00
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lillian/.local/lib/python3.9/site-packages/fiona/collection.py:208: FeatureWarning: Empty field name at index 61\n",
" self._schema = self.session.get_schema()\n",
"/home/lillian/anaconda3/lib/python3.9/site-packages/geopandas/geodataframe.py:600: UserWarning: Empty field name at index 61\n",
" for feature in features_lst:\n"
]
}
],
"source": [
"import pandas as pd\n",
"import geopandas as gpd\n",
"\n",
"crs = {'init':'EPSG:4326'}\n",
"df_geojson = gpd.read_file(r'../data/2022gr.geo.json', crs=crs)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We importeren nu de gemeente shapefile kaart van het CBS, om de overlay van onze stemlokalen eroverheen te kunnen doen. "
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
2022-04-14 15:43:51 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAOQAAAD4CAYAAAD8Q0ptAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAB9nUlEQVR4nO29d5hk6V3f+3nPOXUqx845TM65Z1eriBAIAcKA4QpzsSUbC/yQrn0v2BgHHPDFxnCJtpEJNkmAAZkggYSEtCvtandyjj3TOXdXzqfOOfePU3Wmqququ2dnZqdnpz7Po0fT1V3Vp3rrd973/YXvV5imSYsWLbYH0tO+gBYtWjygFZAtWmwjWgHZosU2ohWQLVpsI1oB2aLFNkJ52hfQiPb2dnN4ePhpX0aLFk+M8+fPr5qm2bH+8W0ZkMPDw5w7d+5pX0aLFk8MIcRUo8dbW9YWLbYRrYBs0WIb0QrIFi22Ea2AbNFiG9EKyBYtthGtgGzRYhvRCsgWLbYRrYBs0WIb0QrIFm8LDMOkWDIwjMbzvYZh8itfHOfqbOItvrKHY1t26rRo8TC8Nr7Kv/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b872paA6/29H0uQd6AnZD+Ewsi2FiZ3vX1/oaFf+d5S1ko6byuXLSaCVVwCEJewQLoKibnJ2McXIwVN6qm0ysZQm5HWTKrX19ITdz8Rx9ITemaTKfyGOasJIusJIu4JAFxwZCqIqECcQyRbqCDjv4J1cfrv7ZiFZAvo1YSRX4sT+6QrqgMbma4Uh/iFRO48xElJ2dPoq6gf4YEhMdfifnJmMNz2GH+gJcnUsS8ars6PBybc5aOQ/1B7kxn0Q
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
2022-04-14 15:43:51 +02:00
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"nl_map = gpd.read_file(r'../data/shape/Netherlands_shapefile/gemeente_2021_v1.shp')\n",
"nl_map.to_crs(epsg=4326).plot()\n"
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 4,
2022-04-12 16:39:06 +02:00
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" GM_CODE GM_NAAM H2O OAD STED BEV_DICHTH AANT_INW \\\n",
"0 GM0034 Almere JA -99999999 -99999999 -99999999 -99999999 \n",
"1 GM0050 Zeewolde JA -99999999 -99999999 -99999999 -99999999 \n",
"2 GM0060 Ameland JA -99999999 -99999999 -99999999 -99999999 \n",
"3 GM0072 Harlingen JA -99999999 -99999999 -99999999 -99999999 \n",
"4 GM0088 Schiermonnikoog JA -99999999 -99999999 -99999999 -99999999 \n",
".. ... ... ... ... ... ... ... \n",
"430 GM1966 Het Hogeland NEE 414 5 99 47834 \n",
"431 GM1969 Westerkwartier NEE 476 5 176 63678 \n",
"432 GM1970 Noardeast-Fryslân NEE 463 5 120 45481 \n",
"433 GM1978 Molenlanden NEE 393 5 243 44130 \n",
"434 GM1979 Eemsdelta NEE 692 4 170 45587 \n",
"\n",
" AANT_MAN AANT_VROUW P_00_14_JR ... P_TURKIJE P_OVER_NW OPP_TOT \\\n",
"0 -99999999 -99999999 -99999999 ... -99999999 -99999999 -99999999 \n",
"1 -99999999 -99999999 -99999999 ... -99999999 -99999999 -99999999 \n",
"2 -99999999 -99999999 -99999999 ... -99999999 -99999999 -99999999 \n",
"3 -99999999 -99999999 -99999999 ... -99999999 -99999999 -99999999 \n",
"4 -99999999 -99999999 -99999999 ... -99999999 -99999999 -99999999 \n",
".. ... ... ... ... ... ... ... \n",
"430 24052 23782 15 ... 0 3 90308 \n",
"431 32034 31644 17 ... 0 3 36887 \n",
"432 22879 22602 17 ... 0 2 51645 \n",
"433 22317 21813 18 ... 0 2 19158 \n",
"434 22841 22746 14 ... 2 5 36407 \n",
"\n",
" OPP_LAND OPP_WATER JRSTATCODE JAAR Shape_Leng Shape_Area \\\n",
"0 -99999999 -99999999 2021GM0034 2021 122665.358635 1.095623e+08 \n",
"1 -99999999 -99999999 2021GM0050 2021 83290.773617 1.633050e+07 \n",
"2 -99999999 -99999999 2021GM0060 2021 156406.894023 2.085914e+08 \n",
"3 -99999999 -99999999 2021GM0072 2021 104274.683035 3.618323e+08 \n",
"4 -99999999 -99999999 2021GM0088 2021 152568.858991 1.624101e+08 \n",
".. ... ... ... ... ... ... \n",
"430 48249 42059 2021GM1966 2021 321301.166576 4.875998e+08 \n",
"431 36269 618 2021GM1969 2021 99030.762281 3.688457e+08 \n",
"432 37783 13862 2021GM1970 2021 238426.959926 3.837930e+08 \n",
"433 18173 986 2021GM1978 2021 88570.376691 1.915841e+08 \n",
"434 26789 9618 2021GM1979 2021 173966.493452 2.727771e+08 \n",
"\n",
" geometry \n",
"0 MULTIPOLYGON (((150213.998 479503.726, 150087.... \n",
"1 MULTIPOLYGON (((170588.413 486792.192, 170570.... \n",
"2 POLYGON ((196000.000 610000.000, 196000.000 60... \n",
"3 MULTIPOLYGON (((158392.775 580357.500, 158387.... \n",
"4 POLYGON ((219000.000 616567.418, 219000.000 61... \n",
".. ... \n",
"430 MULTIPOLYGON (((217037.735 601967.991, 217043.... \n",
"431 POLYGON ((215186.661 595044.495, 215190.788 59... \n",
"432 MULTIPOLYGON (((207769.575 603284.528, 207773.... \n",
"433 POLYGON ((123569.533 440132.167, 123576.153 44... \n",
"434 MULTIPOLYGON (((269190.000 594253.046, 269190.... \n",
"\n",
"[435 rows x 38 columns]\n"
]
2022-04-12 16:39:06 +02:00
}
],
"source": [
"print(nl_map)"
2022-04-12 16:39:06 +02:00
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 5,
2022-03-29 17:09:52 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:>"
2022-03-29 17:09:52 +02:00
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 5,
2022-03-29 17:09:52 +02:00
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
2022-04-14 15:43:51 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAGMAAAI/CAYAAABj6GcwAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAANdklEQVR4nO3cb2xd913H8fenTsu60nWJaluhXXE1RWiI/alklaI8gYVMEUEkmlRpE0N+UC1PmLRqSMwwJDSJCfNk4glPAkxYasdaaeSP1qnMMlQTqCt1SGhaWvA2vNAkit2WUlindm2/PPCJ8BI799rX9/oTn89Lqs7/nJ/y7jnnHic3qirCww1bPYD4f4lhJDGMJIaRxDCSGEZ2DPJkt99+e42NjQ3ylHZOnTr1UlUNr7ZtoDHGxsaYm5sb5CntSPrBWttymzKSGEYSw0hiGEkMI4lhJDGMJIaRxDCSGEYSw0hiGEkMI4lhJDGMJIaRxDCSGEYSw0hiGEkMIwP92yHXs+Onz/O5R87wzhXrd777Rl59/cf8zHtv5vyrP7rquE/ddxd/dPiDXZ0jMdbwm3/+JP/4vVc67vdfr/8YYNUQAA995xxAV0Fym1pFtyG69dB3znH35GMcP33+mvvlyljh+OnzfP7rz/DGW1fejHpXwI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NIYhhJDCOJYSQxjCSGkcQwkhhGEsNIYhhJDCOJYSQxjCSGkcQwkhhGEsNIYhhJDCOJYSQxjCSGkcQwkhhGEsNIYhhJDCOJYSQxjCSGkcQwkhhGEsNIYhhJDCOJYSQxjCSGkcQwkhhGEsNIYhhJDCOJYSQxjCSGkcQwkhhGEsNIYhhJDCOJYSQxjCSGkcQwkhhGEsNIYhhJDCOJYSQxjCSGkcQwkhhGEsNIYhhJDCOJYSQxjCSGkcQw0lM
"text/plain": [
"<Figure size 720x720 with 1 Axes>"
]
},
2022-04-14 15:43:51 +02:00
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"\n",
"fig, ax = plt.subplots(figsize = (10,10))\n",
"nl_map.to_crs(epsg=4326).plot(ax=ax, color='lightgrey')\n",
"df_geojson.plot(ax=ax)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We hebben hier een probleem dat sommige punten de coördinaten 0,0 hebben, dit is niet iets wat we willen weergeven. Laten we eerst kijken waarom dit het geval is in de data voordat we het er helemaal uithalen."
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Stembureau 32\n",
"Adres \n",
"Locatie SB32\n",
"description Stembureau Mobiel Stembureau 1\n",
"Geldige stemmen 99\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 2520, Length: 973, dtype: object\n",
"Stembureau 33\n",
"Adres \n",
"Locatie SB33\n",
"description Stembureau Mobiel Stembureau 2\n",
"Geldige stemmen 115\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 2521, Length: 973, dtype: object\n",
"Stembureau 157\n",
"Adres \n",
"Locatie SB157\n",
"description Stembureau Stembureau Stembus\n",
"Geldige stemmen 72\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 2918, Length: 973, dtype: object\n",
"Stembureau 171\n",
"Adres \n",
"Locatie SB171\n",
"description Stembureau Stembureau Stembureau op locatie al...\n",
"Geldige stemmen 174\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 3579, Length: 973, dtype: object\n",
"Stembureau 172\n",
"Adres \n",
"Locatie SB172\n",
"description Stembureau Stembureau Stembureau op locatie al...\n",
"Geldige stemmen 66\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 3580, Length: 973, dtype: object\n",
"Stembureau 173\n",
"Adres \n",
"Locatie SB173\n",
"description Stembureau Stembureau Stembureau op locatie al...\n",
"Geldige stemmen 162\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 3581, Length: 973, dtype: object\n",
"Stembureau 174\n",
"Adres \n",
"Locatie SB174\n",
"description Stembureau Stembureau Stembureau op locatie al...\n",
"Geldige stemmen 65\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 3582, Length: 973, dtype: object\n",
"Stembureau 175\n",
"Adres \n",
"Locatie SB175\n",
"description Stembureau Stembureau Stembureau op locatie al...\n",
"Geldige stemmen 121\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 3583, Length: 973, dtype: object\n",
"Stembureau 39\n",
"Adres \n",
"Locatie SB39\n",
"description Stembureau Mobiel stembureau met beperkte toeg...\n",
"Geldige stemmen 56\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 5494, Length: 973, dtype: object\n",
"Stembureau 34\n",
"Adres \n",
"Locatie SB34\n",
"description Stembureau Stembureau Mobiel stembureau verzor...\n",
"Geldige stemmen 119\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 5784, Length: 973, dtype: object\n",
"Stembureau 35\n",
"Adres \n",
"Locatie SB35\n",
"description Stembureau Stembureau Mobiel stembureau verzor...\n",
"Geldige stemmen 151\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 5785, Length: 973, dtype: object\n",
"Stembureau 11\n",
"Adres \n",
"Locatie SB11\n",
"description Stembureau Mobiel stembureau Ommedijk\n",
"Geldige stemmen 14\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 6260, Length: 973, dtype: object\n",
"Stembureau 12\n",
"Adres \n",
"Locatie SB12\n",
"description Stembureau Mobiel stembureau Van Alphenstaete ...\n",
"Geldige stemmen 68\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 6261, Length: 973, dtype: object\n",
"Stembureau 70\n",
"Adres \n",
"Locatie SB70\n",
"description Stembureau Mobiel stembureau\n",
"Geldige stemmen 34\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 6738, Length: 973, dtype: object\n",
"Stembureau 71\n",
"Adres \n",
"Locatie SB71\n",
"description Stembureau Mobiel stembureau\n",
"Geldige stemmen 43\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 6739, Length: 973, dtype: object\n",
"Stembureau 699\n",
"Adres \n",
"Locatie SB699\n",
"description Stembureau Stembureau Mobiel stembureau\n",
"Geldige stemmen 59\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 6863, Length: 973, dtype: object\n",
"Stembureau 32\n",
"Adres \n",
"Locatie SB32\n",
"description Stembureau Mobielstembureau\n",
"Geldige stemmen 63\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7348, Length: 973, dtype: object\n",
"Stembureau 90\n",
"Adres \n",
"Locatie SB90\n",
"description Stembureau Roll and Vote\n",
"Geldige stemmen 339\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7364, Length: 973, dtype: object\n",
"Stembureau 19\n",
"Adres \n",
"Locatie SB19\n",
"description Stembureau Mobiel stembureau\n",
"Geldige stemmen 77\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7857, Length: 973, dtype: object\n",
"Stembureau 1428\n",
"Adres \n",
"Locatie SB1428\n",
"description Stembureau Drive-thru parkeerplaats Rusheuvel 1\n",
"Geldige stemmen 163\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7912, Length: 973, dtype: object\n",
"Stembureau 1437\n",
"Adres \n",
"Locatie SB1437\n",
"description Stembureau Drive-thru parkeerplaats Rusheuvel 2\n",
"Geldige stemmen 239\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7913, Length: 973, dtype: object\n",
"Stembureau 1528\n",
"Adres \n",
"Locatie SB1528\n",
"description Stembureau Drive-thru parkeerplaats Rusheuvel 1\n",
"Geldige stemmen 323\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7923, Length: 973, dtype: object\n",
"Stembureau 1537\n",
"Adres \n",
"Locatie SB1537\n",
"description Stembureau Drive-thru parkeerplaats Rusheuvel 2\n",
"Geldige stemmen 208\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7924, Length: 973, dtype: object\n",
"Stembureau 1541\n",
"Adres \n",
"Locatie SB1541\n",
"description Stembureau Mobiel stembureau\n",
"Geldige stemmen 125\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7926, Length: 973, dtype: object\n",
"Stembureau 200\n",
"Adres \n",
"Locatie SB200\n",
"description Stembureau Mobiel stembureau Ma\n",
"Geldige stemmen 30\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7958, Length: 973, dtype: object\n",
"Stembureau 201\n",
"Adres \n",
"Locatie SB201\n",
"description Stembureau Mobiel stembureau Di\n",
"Geldige stemmen 30\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7959, Length: 973, dtype: object\n",
"Stembureau 202\n",
"Adres \n",
"Locatie SB202\n",
"description Stembureau Mobiel stembureau Woe\n",
"Geldige stemmen 44\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 7960, Length: 973, dtype: object\n",
"Stembureau 30\n",
"Adres \n",
"Locatie SB30\n",
"description Stembureau Stembureau voor de telling stembure...\n",
"Geldige stemmen 2004\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 8108, Length: 973, dtype: object\n",
"Stembureau 40\n",
"Adres \n",
"Locatie SB40\n",
"description Stembureau Stembureau voor de telling stembure...\n",
"Geldige stemmen 2953\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 8109, Length: 973, dtype: object\n",
"Stembureau 990\n",
"Adres \n",
"Locatie SB990\n",
"description Stembureau Mobiel stembureau (meerdere plaatsen)\n",
"Geldige stemmen 47\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 8161, Length: 973, dtype: object\n",
"Stembureau 991\n",
"Adres \n",
"Locatie SB991\n",
"description Stembureau Mobiel stembureau (meerdere plaatsen)\n",
"Geldige stemmen 70\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 8162, Length: 973, dtype: object\n",
"Stembureau 992\n",
"Adres \n",
"Locatie SB992\n",
"description Stembureau Mobiel stembureau (meerdere plaatsen)\n",
"Geldige stemmen 39\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 8163, Length: 973, dtype: object\n",
"Stembureau 17\n",
"Adres \n",
"Locatie SB17\n",
"description Stembureau Mobiel Stembureau dinsdag\n",
"Geldige stemmen 115\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 8318, Length: 973, dtype: object\n",
"Stembureau 228\n",
"Adres \n",
"Locatie SB228\n",
"description Stembureau Stembureau Drive-in\n",
"Geldige stemmen 80\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 9093, Length: 973, dtype: object\n",
"Stembureau 30\n",
"Adres \n",
"Locatie SB30\n",
"description Stembureau Mobiel stembureau\n",
"Geldige stemmen 25\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 9151, Length: 973, dtype: object\n",
"Stembureau 31\n",
"Adres \n",
"Locatie SB31\n",
"description Stembureau Mobiel stembureau\n",
"Geldige stemmen 8\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 9152, Length: 973, dtype: object\n",
"Stembureau 32\n",
"Adres \n",
"Locatie SB32\n",
"description Stembureau Mobiel stembureau\n",
"Geldige stemmen 24\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 9153, Length: 973, dtype: object\n",
"Stembureau 76\n",
"Adres \n",
"Locatie SB76\n",
"description Stembureau Rondvaartboot Toerist VI\n",
"Geldige stemmen 148\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 9661, Length: 973, dtype: object\n",
"Stembureau 68\n",
"Adres \n",
"Locatie SB68\n",
"description Stembureau Drive Inn (evenemententerrein Het L...\n",
"Geldige stemmen 285\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 9853, Length: 973, dtype: object\n",
"Stembureau 14\n",
"Adres \n",
"Locatie SB14\n",
"description Stembureau Mobiel Stembureau\n",
"Geldige stemmen 24\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10427, Length: 973, dtype: object\n",
"Stembureau 18\n",
"Adres \n",
"Locatie SB18\n",
"description Stembureau Mobiel stembureau\n",
"Geldige stemmen 50\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10431, Length: 973, dtype: object\n",
"Stembureau 23\n",
"Adres \n",
"Locatie SB23\n",
"description Stembureau Stembureau Mobiel: Wkp Zout Veere\n",
"Geldige stemmen 55\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10497, Length: 973, dtype: object\n",
"Stembureau 24\n",
"Adres \n",
"Locatie SB24\n",
"description Stembureau Stembureau Mobiel: Okp Dom\n",
"Geldige stemmen 35\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10498, Length: 973, dtype: object\n",
"Stembureau 115\n",
"Adres \n",
"Locatie SB115\n",
"description Stembureau Tent Nijverheidslaan\n",
"Geldige stemmen 258\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10525, Length: 973, dtype: object\n",
"Stembureau 116\n",
"Adres \n",
"Locatie SB116\n",
"description Stembureau Tent Nijverheidslaan\n",
"Geldige stemmen 377\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10526, Length: 973, dtype: object\n",
"Stembureau 117\n",
"Adres \n",
"Locatie SB117\n",
"description Stembureau Tent Peter Benenson park\n",
"Geldige stemmen 285\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10527, Length: 973, dtype: object\n",
"Stembureau 118\n",
"Adres \n",
"Locatie SB118\n",
"description Stembureau Tent Peter Benenson park\n",
"Geldige stemmen 329\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10528, Length: 973, dtype: object\n",
"Stembureau 310\n",
"Adres \n",
"Locatie SB310\n",
"description Stembureau Mobiel Bijzonder stembureau 1\n",
"Geldige stemmen 26\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10623, Length: 973, dtype: object\n",
"Stembureau 311\n",
"Adres \n",
"Locatie SB311\n",
"description Stembureau Mobiel Bijzonder stembureau 2\n",
"Geldige stemmen 55\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10624, Length: 973, dtype: object\n",
"Stembureau 88\n",
"Adres \n",
"Locatie SB88\n",
"description Stembureau Mobiel stembureau 1\n",
"Geldige stemmen 78\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10894, Length: 973, dtype: object\n",
"Stembureau 89\n",
"Adres \n",
"Locatie SB89\n",
"description Stembureau Mobiel stembureau 2\n",
"Geldige stemmen 35\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 10895, Length: 973, dtype: object\n",
"Stembureau 31\n",
"Adres \n",
"Locatie SB31\n",
"description Stembureau Stembureau Mobiel Stembureau\n",
"Geldige stemmen 32\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 11032, Length: 973, dtype: object\n",
"Stembureau 0\n",
"Adres \n",
"Locatie SB0\n",
"description Stembureau -\n",
"Geldige stemmen 0\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 11101, Length: 973, dtype: object\n",
"Stembureau 132\n",
"Adres \n",
"Locatie SB132\n",
"description Stembureau Stembureau IJsselhallen drive thoug...\n",
"Geldige stemmen 52\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 12038, Length: 973, dtype: object\n",
"Stembureau 133\n",
"Adres \n",
"Locatie SB133\n",
"description Stembureau Stembureau IJsselhallen drive throu...\n",
"Geldige stemmen 48\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 12039, Length: 973, dtype: object\n",
"Stembureau 232\n",
"Adres \n",
"Locatie SB232\n",
"description Stembureau Stembureau IJsselhallen drive thoug...\n",
"Geldige stemmen 113\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 12053, Length: 973, dtype: object\n",
"Stembureau 233\n",
"Adres \n",
"Locatie SB233\n",
"description Stembureau Stembureau IJsselhallen drive throu...\n",
"Geldige stemmen 73\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 12054, Length: 973, dtype: object\n",
"Stembureau 358\n",
"Adres \n",
"Locatie SB358\n",
"description Stembureau Stembureau Mobiel stembureau 1\n",
"Geldige stemmen 70\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 12118, Length: 973, dtype: object\n",
"Stembureau 359\n",
"Adres \n",
"Locatie SB359\n",
"description Stembureau Stembureau Mobiel stembureau 2\n",
"Geldige stemmen 169\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 12119, Length: 973, dtype: object\n",
"Stembureau 360\n",
"Adres \n",
"Locatie SB360\n",
"description Stembureau Stembureau Mobiel stembureau 3\n",
"Geldige stemmen 89\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 12120, Length: 973, dtype: object\n",
"Stembureau 361\n",
"Adres \n",
"Locatie SB361\n",
"description Stembureau Stembureau Mobiel stembureau 4\n",
"Geldige stemmen 36\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie NaN\n",
"RAADSGROEPERING ''BOSCH-BELANG'' NaN\n",
"gewoon ge-DREVEN NaN\n",
"VOOR Den Bosch Joep Gersjes NaN\n",
"geometry POINT (0 0)\n",
"Name: 12121, Length: 973, dtype: object\n",
"Stembureau 114\n",
"Adres \n",
"Locatie SB114\n",
"description Stembureau Stembureau Mobiel stembureau (beper...\n",
"Geldige stemmen 109\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie 11.0\n",
"RAADSGROEPERING ''BOSCH-BELANG'' 8.0\n",
"gewoon ge-DREVEN 0.0\n",
"VOOR Den Bosch Joep Gersjes 1.0\n",
"geometry POINT (0 0)\n",
"Name: 12504, Length: 973, dtype: object\n",
"Stembureau 115\n",
"Adres \n",
"Locatie SB115\n",
"description Stembureau Stembureau Mobiel Stembureau (beper...\n",
"Geldige stemmen 80\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie 9.0\n",
"RAADSGROEPERING ''BOSCH-BELANG'' 5.0\n",
"gewoon ge-DREVEN 0.0\n",
"VOOR Den Bosch Joep Gersjes 3.0\n",
"geometry POINT (0 0)\n",
"Name: 12505, Length: 973, dtype: object\n",
"Stembureau 116\n",
"Adres \n",
"Locatie SB116\n",
"description Stembureau Stembureau Mobiel Stembureau (beper...\n",
"Geldige stemmen 119\n",
" ... \n",
"\"Leefbaar 's-Hertogenbosch\" Paul Kagie 3.0\n",
"RAADSGROEPERING ''BOSCH-BELANG'' 3.0\n",
"gewoon ge-DREVEN 20.0\n",
"VOOR Den Bosch Joep Gersjes 3.0\n",
"geometry POINT (0 0)\n",
"Name: 12506, Length: 973, dtype: object\n"
]
2022-03-29 17:09:52 +02:00
}
],
"source": [
"for index, row in df_geojson.iterrows():\n",
" if (row.geometry.centroid.x == 0.00000):\n",
" print(row)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
2022-04-20 13:03:38 +02:00
"Het zijn dus duidelijk allemaal mobiele stemlokalen, die kunnen we in een aparte dataset houden voor later, voor nu zijn ze onbelangrijk voor de kaartweergave, laten we de dataset dus opsplitsen in drie dataframes, de originele, één frame zonder de mobiele stemlokalen, en de mobiele stemlokalen alleen."
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
2022-05-04 13:24:29 +02:00
"/tmp/ipykernel_7786/291552514.py:3: UserWarning: Geometry is in a geographic CRS. Results from 'centroid' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.\n",
"\n",
" mobiel_mask = df_geojson['geometry'].centroid.x == 0\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2520\n",
"2521\n",
"2918\n",
"3579\n",
"3580\n",
"3581\n",
"3582\n",
"3583\n",
"5494\n",
"5784\n",
"5785\n",
"6260\n",
"6261\n",
"6738\n",
"6739\n",
"6863\n",
"7348\n",
"7364\n",
"7857\n",
"7912\n",
"7913\n",
"7923\n",
"7924\n",
"7926\n",
"7958\n",
"7959\n",
"7960\n",
"8108\n",
"8109\n",
"8161\n",
"8162\n",
"8163\n",
"8318\n",
"9093\n",
"9151\n",
"9152\n",
"9153\n",
"9661\n",
"9853\n",
"10427\n",
"10431\n",
"10497\n",
"10498\n",
"10525\n",
"10526\n",
"10527\n",
"10528\n",
"10623\n",
"10624\n",
"10894\n",
"10895\n",
"11032\n",
"11101\n",
"12038\n",
"12039\n",
"12053\n",
"12054\n",
"12118\n",
"12119\n",
"12120\n",
"12121\n",
"12504\n",
"12505\n",
"12506\n"
]
}
],
"source": [
"#de waarschuwing over de projectie die niet klopt kan genegeerd worden, we zoeken naar data die x = 0 is, de projectie gaat geen effect hebben op die data in Nederland\n",
"#filter de data en print welke waardes 0 hebben op x\n",
"mobiel_mask = df_geojson['geometry'].centroid.x == 0\n",
"i = 0\n",
"for item in mobiel_mask:\n",
" if item:\n",
" print(i)\n",
" i = i + 1"
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" Stembureau Adres Locatie \\\n",
"0 1 9461BH SB1 \n",
"1 2 9461DA SB2 \n",
"2 3 9461JA SB3 \n",
"3 4 9451KD SB4 \n",
"4 6 9454PL SB6 \n",
"... ... ... ... \n",
"12591 703 5391AR SB703 \n",
"12592 705 5391AR SB705 \n",
"12593 750 5382KE SB750 \n",
"12594 751 5382KE SB751 \n",
"12595 752 5283KE SB752 \n",
"\n",
" description Geldige stemmen \\\n",
"0 Stembureau Gemeentehuis Gieten (postcode: 9461... 784 \n",
"1 Stembureau OBS Gieten (postcode: 9461 DA) 562 \n",
"2 Stembureau Zorgcentrum Dekelhem (postcode: 946... 566 \n",
"3 Stembureau Ontmoetingscentrum Boerhorn Rolde (... 1495 \n",
"4 Stembureau Dropshuis de Eekhof (postcode: 9454... 347 \n",
"... ... ... \n",
"12591 Stembureau Stembureau Gemeenschapshuis de Meen... 268 \n",
"12592 Stembureau Stembureau Gemeenschapshuis De Meen... 398 \n",
"12593 Stembureau Stembureau Gemeenschapshuis 't Zijl... 663 \n",
"12594 Stembureau Stembureau Gemeenschapshuis 't Zijl... 170 \n",
"12595 Stembureau Stembureau Gemeenschapshuis 't Zijl... 222 \n",
"\n",
" Opgeroepen Ongeldig Blanco Geldige stempassen \\\n",
"0 2780 3 3 700 \n",
"1 1396 0 0 518 \n",
"2 1409 2 2 516 \n",
"3 2209 2 4 1335 \n",
"4 477 0 2 298 \n",
"... ... ... ... ... \n",
"12591 0 0 1 237 \n",
"12592 0 1 0 359 \n",
"12593 2321 2 0 552 \n",
"12594 0 0 0 151 \n",
"12595 0 0 0 193 \n",
"\n",
" Geldige volmachtbewijzen ... \\\n",
"0 90 ... \n",
"1 44 ... \n",
"2 54 ... \n",
"3 166 ... \n",
"4 51 ... \n",
"... ... ... \n",
"12591 32 ... \n",
"12592 40 ... \n",
"12593 113 ... \n",
"12594 19 ... \n",
"12595 29 ... \n",
"\n",
" Nationale Bond tegen Overheidszaken - DH Haags Belang INL Den Haag \\\n",
"0 NaN NaN NaN \n",
"1 NaN NaN NaN \n",
"2 NaN NaN NaN \n",
"3 NaN NaN NaN \n",
"4 NaN NaN NaN \n",
"... ... ... ... \n",
"12591 NaN NaN NaN \n",
"12592 NaN NaN NaN \n",
"12593 NaN NaN NaN \n",
"12594 NaN NaN NaN \n",
"12595 NaN NaN NaN \n",
"\n",
" Rosmalens Belang De Bossche Groenen \\\n",
"0 NaN NaN \n",
"1 NaN NaN \n",
"2 NaN NaN \n",
"3 NaN NaN \n",
"4 NaN NaN \n",
"... ... ... \n",
"12591 105.0 2.0 \n",
"12592 174.0 6.0 \n",
"12593 47.0 19.0 \n",
"12594 8.0 11.0 \n",
"12595 10.0 2.0 \n",
"\n",
" \"Leefbaar 's-Hertogenbosch\" Paul Kagie \\\n",
"0 NaN \n",
"1 NaN \n",
"2 NaN \n",
"3 NaN \n",
"4 NaN \n",
"... ... \n",
"12591 6.0 \n",
"12592 2.0 \n",
"12593 53.0 \n",
"12594 13.0 \n",
"12595 22.0 \n",
"\n",
" RAADSGROEPERING ''BOSCH-BELANG'' gewoon ge-DREVEN \\\n",
"0 NaN NaN \n",
"1 NaN NaN \n",
"2 NaN NaN \n",
"3 NaN NaN \n",
"4 NaN NaN \n",
"... ... ... \n",
"12591 0.0 33.0 \n",
"12592 3.0 31.0 \n",
"12593 2.0 62.0 \n",
"12594 1.0 22.0 \n",
"12595 2.0 28.0 \n",
"\n",
" VOOR Den Bosch Joep Gersjes geometry \n",
"0 NaN POINT (6.75899 53.00524) \n",
"1 NaN POINT (6.75990 52.99975) \n",
"2 NaN POINT (6.76600 53.00494) \n",
"3 NaN POINT (6.64736 52.98281) \n",
"4 NaN POINT (6.60459 52.95269) \n",
"... ... ... \n",
"12591 0.0 POINT (5.43290 51.72810) \n",
"12592 2.0 POINT (5.43290 51.72810) \n",
"12593 5.0 POINT (5.45919 51.70595) \n",
"12594 1.0 POINT (5.45919 51.70595) \n",
"12595 0.0 POINT (5.45919 51.70595) \n",
"\n",
"[12532 rows x 973 columns]\n"
]
}
],
"source": [
"df_geojson_clean = df_geojson[~mobiel_mask]\n",
"df_geojson_mobiel = df_geojson[mobiel_mask]\n",
"print(df_geojson_clean)"
]
},
2022-05-03 13:06:50 +02:00
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"#let's also check if none fell through the cracks, it might be some mobile polls did actually have a location posted erroneously.\n",
"#mobiel_mask_name = df_geojson_clean['description'].str.contains('Mobiel')\n",
"#df_geojson_clean = df_geojson_clean[~mobiel_mask_name]\n",
"#df_geojson_clean"
]
},
{
"cell_type": "code",
2022-04-26 14:07:35 +02:00
"execution_count": 10,
"metadata": {},
2022-04-20 13:03:38 +02:00
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
2022-05-03 13:06:50 +02:00
" <th>_id</th>\n",
" <th>Gemeente</th>\n",
" <th>CBS gemeentecode</th>\n",
" <th>Nummer stembureau</th>\n",
" <th>Naam stembureau</th>\n",
" <th>Gebruiksdoel van het gebouw</th>\n",
" <th>Website locatie</th>\n",
" <th>Wijknaam</th>\n",
" <th>CBS wijknummer</th>\n",
" <th>Buurtnaam</th>\n",
2022-04-20 13:03:38 +02:00
" <th>...</th>\n",
2022-05-03 13:06:50 +02:00
" <th>Visuele hulpmiddelen</th>\n",
" <th>Gehandicaptentoilet</th>\n",
" <th>Kieskring ID</th>\n",
" <th>Hoofdstembureau</th>\n",
" <th>Tellocatie</th>\n",
" <th>Contactgegevens gemeente</th>\n",
" <th>Verkiezingswebsite gemeente</th>\n",
" <th>Verkiezingen</th>\n",
" <th>ID</th>\n",
" <th>UUID</th>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>1</td>\n",
" <td>Zorgcentrum Kempenhof</td>\n",
" <td>gezondheidszorgfunctie</td>\n",
" <td>https://www.valkenhof.nl/</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>...</td>\n",
" <td>leesloep</td>\n",
" <td>ja</td>\n",
" <td>Valkenswaard</td>\n",
" <td>Valkenswaard</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>3a612b2151fa4ab491b9e331355e6258</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>2</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>2</td>\n",
" <td>Buurtgebouw De Horizon</td>\n",
" <td>bijeenkomstfunctie</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>...</td>\n",
" <td>leesloep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>Valkenswaard</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>9a01d765af0a467ea37f08d92db114ba</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>3</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>3</td>\n",
" <td>Speeltuin Geenhoven</td>\n",
" <td>bijeenkomstfunctie</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>...</td>\n",
" <td>leesloep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>Valkenswaard</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>fc5869d33fbc4b06be659149fa615f4c</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>4</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-20 13:03:38 +02:00
" <td>4</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Ontmoetingscentrum De zoete inval</td>\n",
" <td>bijeenkomstfunctie</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>...</td>\n",
" <td>leesloep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>Valkenswaard</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>4427cc0b39e040ba8f75c333f19d66f0</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
2022-05-03 13:06:50 +02:00
" <td>5</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>5</td>\n",
" <td>Gymnastiekzaal 't Gegraaf</td>\n",
" <td>sportfunctie</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>...</td>\n",
" <td>leesloep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>Valkenswaard</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>a893bb9add324ce29769f1c39afcc48d</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9270</th>\n",
" <td>38745</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>4</td>\n",
" <td>Het Hökske</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>...</td>\n",
" <td>Leesloep</td>\n",
" <td>NaN</td>\n",
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
" <td>ja</td>\n",
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>f744546cd6894e5e9a4db4bbfd81b4ee</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9271</th>\n",
" <td>38746</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>5</td>\n",
" <td>Buurthuis VanOns</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>...</td>\n",
" <td>Leesloep</td>\n",
" <td>NaN</td>\n",
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
" <td>ja</td>\n",
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>1270081b1dc74cd7bea0f45973650408</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9272</th>\n",
" <td>38747</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>6</td>\n",
" <td>'t Trefpunt</td>\n",
" <td>bijeenkomstfunctie</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NaN</td>\n",
" <td>...</td>\n",
" <td>Leesloep</td>\n",
" <td>NaN</td>\n",
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
" <td>ja</td>\n",
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>447c7742604345139e41def4cf1e4d3c</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9273</th>\n",
" <td>38748</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>8</td>\n",
" <td>De Uitkomst</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>...</td>\n",
" <td>Leesloep</td>\n",
" <td>NaN</td>\n",
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
" <td>ja</td>\n",
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>049cfd258c174bc49abf17883396d083</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9274</th>\n",
" <td>38749</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>1</td>\n",
" <td>Zaal Buurman</td>\n",
" <td>woonfunctie,bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>1e8cbe96e72c4c6ba6303f47bec8cdb5</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" </tbody>\n",
"</table>\n",
2022-05-03 13:06:50 +02:00
"<p>9275 rows × 39 columns</p>\n",
2022-04-20 13:03:38 +02:00
"</div>"
],
"text/plain": [
2022-05-03 13:06:50 +02:00
" _id Gemeente CBS gemeentecode Nummer stembureau \\\n",
"0 1 Valkenswaard GM0858 1 \n",
"1 2 Valkenswaard GM0858 2 \n",
"2 3 Valkenswaard GM0858 3 \n",
"3 4 Valkenswaard GM0858 4 \n",
"4 5 Valkenswaard GM0858 5 \n",
"... ... ... ... ... \n",
"9270 38745 Gennep GM0907 4 \n",
"9271 38746 Gennep GM0907 5 \n",
"9272 38747 Gennep GM0907 6 \n",
"9273 38748 Gennep GM0907 8 \n",
"9274 38749 Gennep GM0907 1 \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Naam stembureau Gebruiksdoel van het gebouw \\\n",
"0 Zorgcentrum Kempenhof gezondheidszorgfunctie \n",
"1 Buurtgebouw De Horizon bijeenkomstfunctie \n",
"2 Speeltuin Geenhoven bijeenkomstfunctie \n",
"3 Ontmoetingscentrum De zoete inval bijeenkomstfunctie \n",
"4 Gymnastiekzaal 't Gegraaf sportfunctie \n",
"... ... ... \n",
"9270 Het Hökske bijeenkomstfunctie \n",
"9271 Buurthuis VanOns bijeenkomstfunctie \n",
"9272 't Trefpunt bijeenkomstfunctie \n",
"9273 De Uitkomst bijeenkomstfunctie \n",
"9274 Zaal Buurman woonfunctie,bijeenkomstfunctie \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Website locatie Wijknaam CBS wijknummer Buurtnaam ... \\\n",
"0 https://www.valkenhof.nl/ NaN NaN NaN ... \n",
"1 NaN NaN NaN NaN ... \n",
"2 NaN NaN NaN NaN ... \n",
"3 NaN NaN NaN NaN ... \n",
"4 NaN NaN NaN NaN ... \n",
"... ... ... ... ... ... \n",
"9270 NaN NaN NaN NaN ... \n",
"9271 NaN NaN NaN NaN ... \n",
"9272 NaN NaN NaN NaN ... \n",
"9273 NaN NaN NaN NaN ... \n",
"9274 NaN NaN NaN NaN ... \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Visuele hulpmiddelen Gehandicaptentoilet Kieskring ID \\\n",
"0 leesloep ja Valkenswaard \n",
"1 leesloep NaN Valkenswaard \n",
"2 leesloep NaN Valkenswaard \n",
"3 leesloep NaN Valkenswaard \n",
"4 leesloep NaN Valkenswaard \n",
"... ... ... ... \n",
"9270 Leesloep NaN Gennep \n",
"9271 Leesloep NaN Gennep \n",
"9272 Leesloep NaN Gennep \n",
"9273 Leesloep NaN Gennep \n",
"9274 NaN NaN Gennep \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Hoofdstembureau Tellocatie \\\n",
"0 Valkenswaard NaN \n",
"1 Valkenswaard NaN \n",
"2 Valkenswaard NaN \n",
"3 Valkenswaard NaN \n",
"4 Valkenswaard NaN \n",
"... ... ... \n",
"9270 Gennep ja \n",
"9271 Gennep ja \n",
"9272 Gennep ja \n",
"9273 Gennep ja \n",
"9274 Gennep NaN \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Contactgegevens gemeente \\\n",
"0 verkiezingen@valkenswaard.nl \n",
"1 verkiezingen@valkenswaard.nl \n",
"2 verkiezingen@valkenswaard.nl \n",
"3 verkiezingen@valkenswaard.nl \n",
"4 verkiezingen@valkenswaard.nl \n",
"... ... \n",
"9270 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9271 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9272 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9273 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9274 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Verkiezingswebsite gemeente Verkiezingen \\\n",
"0 http://www.valkenswaard.nl/verkiezingen NaN \n",
"1 http://www.valkenswaard.nl/verkiezingen NaN \n",
"2 http://www.valkenswaard.nl/verkiezingen NaN \n",
"3 http://www.valkenswaard.nl/verkiezingen NaN \n",
"4 http://www.valkenswaard.nl/verkiezingen NaN \n",
"... ... ... \n",
"9270 https://www.gennep.nl NaN \n",
"9271 https://www.gennep.nl NaN \n",
"9272 https://www.gennep.nl NaN \n",
"9273 https://www.gennep.nl NaN \n",
"9274 https://www.gennep.nl NaN \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" ID UUID \n",
"0 NLODSGM0858stembureaus20220316009 3a612b2151fa4ab491b9e331355e6258 \n",
"1 NLODSGM0858stembureaus20220316009 9a01d765af0a467ea37f08d92db114ba \n",
"2 NLODSGM0858stembureaus20220316009 fc5869d33fbc4b06be659149fa615f4c \n",
"3 NLODSGM0858stembureaus20220316009 4427cc0b39e040ba8f75c333f19d66f0 \n",
"4 NLODSGM0858stembureaus20220316009 a893bb9add324ce29769f1c39afcc48d \n",
"... ... ... \n",
"9270 NLODSGM0907stembureaus20220316009 f744546cd6894e5e9a4db4bbfd81b4ee \n",
"9271 NLODSGM0907stembureaus20220316009 1270081b1dc74cd7bea0f45973650408 \n",
"9272 NLODSGM0907stembureaus20220316009 447c7742604345139e41def4cf1e4d3c \n",
"9273 NLODSGM0907stembureaus20220316009 049cfd258c174bc49abf17883396d083 \n",
"9274 NLODSGM0907stembureaus20220316009 1e8cbe96e72c4c6ba6303f47bec8cdb5 \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
"[9275 rows x 39 columns]"
2022-04-20 13:03:38 +02:00
]
},
2022-04-26 14:07:35 +02:00
"execution_count": 10,
2022-04-20 13:03:38 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2022-05-03 13:06:50 +02:00
"df_wims = pd.read_csv(r'../data/wims-2.csv')\n",
"df_wims"
2022-04-20 13:03:38 +02:00
]
},
{
"cell_type": "code",
2022-04-26 14:07:35 +02:00
"execution_count": 11,
2022-04-20 13:03:38 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>_id</th>\n",
" <th>Gemeente</th>\n",
" <th>CBS gemeentecode</th>\n",
" <th>Nummer stembureau</th>\n",
" <th>Naam stembureau</th>\n",
" <th>Gebruiksdoel van het gebouw</th>\n",
" <th>Website locatie</th>\n",
" <th>Wijknaam</th>\n",
" <th>CBS wijknummer</th>\n",
" <th>Buurtnaam</th>\n",
" <th>...</th>\n",
2022-04-26 14:07:35 +02:00
" <th>Gehandicaptentoilet</th>\n",
2022-04-20 13:03:38 +02:00
" <th>Kieskring ID</th>\n",
" <th>Hoofdstembureau</th>\n",
" <th>Tellocatie</th>\n",
" <th>Contactgegevens gemeente</th>\n",
" <th>Verkiezingswebsite gemeente</th>\n",
" <th>Verkiezingen</th>\n",
" <th>ID</th>\n",
" <th>UUID</th>\n",
2022-05-03 13:06:50 +02:00
" <th>geometry</th>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>1</td>\n",
" <td>Zorgcentrum Kempenhof</td>\n",
" <td>gezondheidszorgfunctie</td>\n",
" <td>https://www.valkenhof.nl/</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>ja</td>\n",
2022-04-20 13:03:38 +02:00
" <td>Valkenswaard</td>\n",
" <td>Valkenswaard</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>3a612b2151fa4ab491b9e331355e6258</td>\n",
2022-05-03 13:06:50 +02:00
" <td>POINT (5.45515 51.34711)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>2</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>2</td>\n",
" <td>Buurtgebouw De Horizon</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>Valkenswaard</td>\n",
" <td>Valkenswaard</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>9a01d765af0a467ea37f08d92db114ba</td>\n",
2022-05-03 13:06:50 +02:00
" <td>POINT (5.45137 51.34955)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>3</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>3</td>\n",
" <td>Speeltuin Geenhoven</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>Valkenswaard</td>\n",
" <td>Valkenswaard</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>fc5869d33fbc4b06be659149fa615f4c</td>\n",
2022-05-03 13:06:50 +02:00
" <td>POINT (5.44827 51.35702)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>4</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>4</td>\n",
" <td>Ontmoetingscentrum De zoete inval</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>Valkenswaard</td>\n",
" <td>Valkenswaard</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>4427cc0b39e040ba8f75c333f19d66f0</td>\n",
2022-05-03 13:06:50 +02:00
" <td>POINT (5.44871 51.36022)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>5</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>5</td>\n",
" <td>Gymnastiekzaal 't Gegraaf</td>\n",
" <td>sportfunctie</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>Valkenswaard</td>\n",
" <td>Valkenswaard</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>a893bb9add324ce29769f1c39afcc48d</td>\n",
2022-05-03 13:06:50 +02:00
" <td>POINT (5.45331 51.36514)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9270</th>\n",
" <td>38745</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>4</td>\n",
" <td>Het Hökske</td>\n",
2022-04-20 13:03:38 +02:00
" <td>bijeenkomstfunctie</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NaN</td>\n",
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>ja</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>f744546cd6894e5e9a4db4bbfd81b4ee</td>\n",
" <td>POINT (5.98266 51.69726)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9271</th>\n",
" <td>38746</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>5</td>\n",
" <td>Buurthuis VanOns</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>ja</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>1270081b1dc74cd7bea0f45973650408</td>\n",
" <td>POINT (5.98127 51.69000)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9272</th>\n",
" <td>38747</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>6</td>\n",
" <td>'t Trefpunt</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>ja</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>447c7742604345139e41def4cf1e4d3c</td>\n",
" <td>POINT (5.95118 51.72591)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9273</th>\n",
" <td>38748</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>8</td>\n",
" <td>De Uitkomst</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NaN</td>\n",
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>ja</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>049cfd258c174bc49abf17883396d083</td>\n",
" <td>POINT (6.01556 51.70976)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9274</th>\n",
" <td>38749</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>1</td>\n",
" <td>Zaal Buurman</td>\n",
" <td>woonfunctie,bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>1e8cbe96e72c4c6ba6303f47bec8cdb5</td>\n",
" <td>POINT (5.98514 51.70189)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" </tbody>\n",
"</table>\n",
2022-05-03 13:06:50 +02:00
"<p>9275 rows × 40 columns</p>\n",
2022-04-20 13:03:38 +02:00
"</div>"
],
"text/plain": [
" _id Gemeente CBS gemeentecode Nummer stembureau \\\n",
"0 1 Valkenswaard GM0858 1 \n",
"1 2 Valkenswaard GM0858 2 \n",
"2 3 Valkenswaard GM0858 3 \n",
"3 4 Valkenswaard GM0858 4 \n",
"4 5 Valkenswaard GM0858 5 \n",
"... ... ... ... ... \n",
2022-05-03 13:06:50 +02:00
"9270 38745 Gennep GM0907 4 \n",
"9271 38746 Gennep GM0907 5 \n",
"9272 38747 Gennep GM0907 6 \n",
"9273 38748 Gennep GM0907 8 \n",
"9274 38749 Gennep GM0907 1 \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Naam stembureau Gebruiksdoel van het gebouw \\\n",
"0 Zorgcentrum Kempenhof gezondheidszorgfunctie \n",
"1 Buurtgebouw De Horizon bijeenkomstfunctie \n",
"2 Speeltuin Geenhoven bijeenkomstfunctie \n",
"3 Ontmoetingscentrum De zoete inval bijeenkomstfunctie \n",
"4 Gymnastiekzaal 't Gegraaf sportfunctie \n",
"... ... ... \n",
"9270 Het Hökske bijeenkomstfunctie \n",
"9271 Buurthuis VanOns bijeenkomstfunctie \n",
"9272 't Trefpunt bijeenkomstfunctie \n",
"9273 De Uitkomst bijeenkomstfunctie \n",
"9274 Zaal Buurman woonfunctie,bijeenkomstfunctie \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Website locatie Wijknaam CBS wijknummer Buurtnaam ... \\\n",
"0 https://www.valkenhof.nl/ NaN NaN NaN ... \n",
"1 NaN NaN NaN NaN ... \n",
"2 NaN NaN NaN NaN ... \n",
"3 NaN NaN NaN NaN ... \n",
"4 NaN NaN NaN NaN ... \n",
"... ... ... ... ... ... \n",
"9270 NaN NaN NaN NaN ... \n",
"9271 NaN NaN NaN NaN ... \n",
"9272 NaN NaN NaN NaN ... \n",
"9273 NaN NaN NaN NaN ... \n",
"9274 NaN NaN NaN NaN ... \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Gehandicaptentoilet Kieskring ID Hoofdstembureau Tellocatie \\\n",
"0 ja Valkenswaard Valkenswaard NaN \n",
"1 NaN Valkenswaard Valkenswaard NaN \n",
"2 NaN Valkenswaard Valkenswaard NaN \n",
"3 NaN Valkenswaard Valkenswaard NaN \n",
"4 NaN Valkenswaard Valkenswaard NaN \n",
"... ... ... ... ... \n",
"9270 NaN Gennep Gennep ja \n",
"9271 NaN Gennep Gennep ja \n",
"9272 NaN Gennep Gennep ja \n",
"9273 NaN Gennep Gennep ja \n",
"9274 NaN Gennep Gennep NaN \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Contactgegevens gemeente \\\n",
"0 verkiezingen@valkenswaard.nl \n",
"1 verkiezingen@valkenswaard.nl \n",
"2 verkiezingen@valkenswaard.nl \n",
"3 verkiezingen@valkenswaard.nl \n",
"4 verkiezingen@valkenswaard.nl \n",
"... ... \n",
"9270 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9271 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9272 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9273 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9274 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Verkiezingswebsite gemeente Verkiezingen \\\n",
"0 http://www.valkenswaard.nl/verkiezingen NaN \n",
"1 http://www.valkenswaard.nl/verkiezingen NaN \n",
"2 http://www.valkenswaard.nl/verkiezingen NaN \n",
"3 http://www.valkenswaard.nl/verkiezingen NaN \n",
"4 http://www.valkenswaard.nl/verkiezingen NaN \n",
"... ... ... \n",
"9270 https://www.gennep.nl NaN \n",
"9271 https://www.gennep.nl NaN \n",
"9272 https://www.gennep.nl NaN \n",
"9273 https://www.gennep.nl NaN \n",
"9274 https://www.gennep.nl NaN \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" ID UUID \\\n",
"0 NLODSGM0858stembureaus20220316009 3a612b2151fa4ab491b9e331355e6258 \n",
"1 NLODSGM0858stembureaus20220316009 9a01d765af0a467ea37f08d92db114ba \n",
"2 NLODSGM0858stembureaus20220316009 fc5869d33fbc4b06be659149fa615f4c \n",
"3 NLODSGM0858stembureaus20220316009 4427cc0b39e040ba8f75c333f19d66f0 \n",
"4 NLODSGM0858stembureaus20220316009 a893bb9add324ce29769f1c39afcc48d \n",
"... ... ... \n",
"9270 NLODSGM0907stembureaus20220316009 f744546cd6894e5e9a4db4bbfd81b4ee \n",
"9271 NLODSGM0907stembureaus20220316009 1270081b1dc74cd7bea0f45973650408 \n",
"9272 NLODSGM0907stembureaus20220316009 447c7742604345139e41def4cf1e4d3c \n",
"9273 NLODSGM0907stembureaus20220316009 049cfd258c174bc49abf17883396d083 \n",
"9274 NLODSGM0907stembureaus20220316009 1e8cbe96e72c4c6ba6303f47bec8cdb5 \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" geometry \n",
"0 POINT (5.45515 51.34711) \n",
"1 POINT (5.45137 51.34955) \n",
"2 POINT (5.44827 51.35702) \n",
"3 POINT (5.44871 51.36022) \n",
"4 POINT (5.45331 51.36514) \n",
"... ... \n",
"9270 POINT (5.98266 51.69726) \n",
"9271 POINT (5.98127 51.69000) \n",
"9272 POINT (5.95118 51.72591) \n",
"9273 POINT (6.01556 51.70976) \n",
"9274 POINT (5.98514 51.70189) \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
"[9275 rows x 40 columns]"
2022-04-20 13:03:38 +02:00
]
},
2022-04-26 14:07:35 +02:00
"execution_count": 11,
2022-04-20 13:03:38 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2022-05-03 13:06:50 +02:00
"\n",
"gdf_wims = gpd.GeoDataFrame(\n",
" df_wims, geometry=gpd.points_from_xy(df_wims.Longitude, df_wims.Latitude)).set_crs(epsg=4326, inplace=True)\n",
"\n",
"gdf_wims"
2022-04-20 13:03:38 +02:00
]
},
{
"cell_type": "code",
2022-04-26 14:07:35 +02:00
"execution_count": 12,
2022-04-20 13:03:38 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>_id</th>\n",
" <th>Gemeente</th>\n",
" <th>CBS gemeentecode</th>\n",
" <th>Nummer stembureau</th>\n",
" <th>Naam stembureau</th>\n",
" <th>Gebruiksdoel van het gebouw</th>\n",
" <th>Website locatie</th>\n",
" <th>Wijknaam</th>\n",
" <th>CBS wijknummer</th>\n",
" <th>Buurtnaam</th>\n",
" <th>...</th>\n",
2022-04-26 14:07:35 +02:00
" <th>Gehandicaptentoilet</th>\n",
" <th>Kieskring ID</th>\n",
2022-04-20 13:03:38 +02:00
" <th>Hoofdstembureau</th>\n",
" <th>Tellocatie</th>\n",
" <th>Contactgegevens gemeente</th>\n",
" <th>Verkiezingswebsite gemeente</th>\n",
" <th>Verkiezingen</th>\n",
" <th>ID</th>\n",
" <th>UUID</th>\n",
" <th>geometry</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>1</td>\n",
" <td>Zorgcentrum Kempenhof</td>\n",
" <td>gezondheidszorgfunctie</td>\n",
" <td>https://www.valkenhof.nl/</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>ja</td>\n",
" <td>Valkenswaard</td>\n",
2022-04-20 13:03:38 +02:00
" <td>Valkenswaard</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>3a612b2151fa4ab491b9e331355e6258</td>\n",
" <td>POINT (5.45515 51.34711)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>2</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>2</td>\n",
" <td>Buurtgebouw De Horizon</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>Valkenswaard</td>\n",
2022-04-20 13:03:38 +02:00
" <td>Valkenswaard</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>9a01d765af0a467ea37f08d92db114ba</td>\n",
" <td>POINT (5.45137 51.34955)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>3</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>3</td>\n",
" <td>Speeltuin Geenhoven</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>Valkenswaard</td>\n",
2022-04-20 13:03:38 +02:00
" <td>Valkenswaard</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>fc5869d33fbc4b06be659149fa615f4c</td>\n",
" <td>POINT (5.44827 51.35702)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>4</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>4</td>\n",
" <td>Ontmoetingscentrum De zoete inval</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>Valkenswaard</td>\n",
2022-04-20 13:03:38 +02:00
" <td>Valkenswaard</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>4427cc0b39e040ba8f75c333f19d66f0</td>\n",
" <td>POINT (5.44871 51.36022)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>5</td>\n",
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
" <td>5</td>\n",
" <td>Gymnastiekzaal 't Gegraaf</td>\n",
" <td>sportfunctie</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>Valkenswaard</td>\n",
2022-04-20 13:03:38 +02:00
" <td>Valkenswaard</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@valkenswaard.nl</td>\n",
" <td>http://www.valkenswaard.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0858stembureaus20220316009</td>\n",
" <td>a893bb9add324ce29769f1c39afcc48d</td>\n",
" <td>POINT (5.45331 51.36514)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9270</th>\n",
" <td>38745</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>4</td>\n",
" <td>Het Hökske</td>\n",
2022-04-20 13:03:38 +02:00
" <td>bijeenkomstfunctie</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NaN</td>\n",
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-26 14:07:35 +02:00
" <td>ja</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>f744546cd6894e5e9a4db4bbfd81b4ee</td>\n",
" <td>POINT (5.98266 51.69726)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9271</th>\n",
" <td>38746</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>5</td>\n",
" <td>Buurthuis VanOns</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>ja</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>1270081b1dc74cd7bea0f45973650408</td>\n",
" <td>POINT (5.98127 51.69000)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9272</th>\n",
" <td>38747</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>6</td>\n",
" <td>'t Trefpunt</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>ja</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>447c7742604345139e41def4cf1e4d3c</td>\n",
" <td>POINT (5.95118 51.72591)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9273</th>\n",
" <td>38748</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>8</td>\n",
" <td>De Uitkomst</td>\n",
" <td>bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NaN</td>\n",
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-26 14:07:35 +02:00
" <td>ja</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>049cfd258c174bc49abf17883396d083</td>\n",
" <td>POINT (6.01556 51.70976)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9274</th>\n",
" <td>38749</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>1</td>\n",
" <td>Zaal Buurman</td>\n",
" <td>woonfunctie,bijeenkomstfunctie</td>\n",
" <td>NaN</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Gennep</td>\n",
" <td>Gennep</td>\n",
2022-04-20 13:03:38 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Klantcontactcentrum gemeente Gennep gemeente@g...</td>\n",
" <td>https://www.gennep.nl</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0907stembureaus20220316009</td>\n",
" <td>1e8cbe96e72c4c6ba6303f47bec8cdb5</td>\n",
" <td>POINT (5.98514 51.70189)</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" </tbody>\n",
"</table>\n",
2022-05-03 13:06:50 +02:00
"<p>8089 rows × 40 columns</p>\n",
2022-04-20 13:03:38 +02:00
"</div>"
],
"text/plain": [
" _id Gemeente CBS gemeentecode Nummer stembureau \\\n",
"0 1 Valkenswaard GM0858 1 \n",
"1 2 Valkenswaard GM0858 2 \n",
"2 3 Valkenswaard GM0858 3 \n",
"3 4 Valkenswaard GM0858 4 \n",
"4 5 Valkenswaard GM0858 5 \n",
"... ... ... ... ... \n",
2022-05-03 13:06:50 +02:00
"9270 38745 Gennep GM0907 4 \n",
"9271 38746 Gennep GM0907 5 \n",
"9272 38747 Gennep GM0907 6 \n",
"9273 38748 Gennep GM0907 8 \n",
"9274 38749 Gennep GM0907 1 \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Naam stembureau Gebruiksdoel van het gebouw \\\n",
"0 Zorgcentrum Kempenhof gezondheidszorgfunctie \n",
"1 Buurtgebouw De Horizon bijeenkomstfunctie \n",
"2 Speeltuin Geenhoven bijeenkomstfunctie \n",
"3 Ontmoetingscentrum De zoete inval bijeenkomstfunctie \n",
"4 Gymnastiekzaal 't Gegraaf sportfunctie \n",
"... ... ... \n",
"9270 Het Hökske bijeenkomstfunctie \n",
"9271 Buurthuis VanOns bijeenkomstfunctie \n",
"9272 't Trefpunt bijeenkomstfunctie \n",
"9273 De Uitkomst bijeenkomstfunctie \n",
"9274 Zaal Buurman woonfunctie,bijeenkomstfunctie \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Website locatie Wijknaam CBS wijknummer Buurtnaam ... \\\n",
"0 https://www.valkenhof.nl/ NaN NaN NaN ... \n",
"1 NaN NaN NaN NaN ... \n",
"2 NaN NaN NaN NaN ... \n",
"3 NaN NaN NaN NaN ... \n",
"4 NaN NaN NaN NaN ... \n",
"... ... ... ... ... ... \n",
"9270 NaN NaN NaN NaN ... \n",
"9271 NaN NaN NaN NaN ... \n",
"9272 NaN NaN NaN NaN ... \n",
"9273 NaN NaN NaN NaN ... \n",
"9274 NaN NaN NaN NaN ... \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Gehandicaptentoilet Kieskring ID Hoofdstembureau Tellocatie \\\n",
"0 ja Valkenswaard Valkenswaard NaN \n",
"1 NaN Valkenswaard Valkenswaard NaN \n",
"2 NaN Valkenswaard Valkenswaard NaN \n",
"3 NaN Valkenswaard Valkenswaard NaN \n",
"4 NaN Valkenswaard Valkenswaard NaN \n",
"... ... ... ... ... \n",
"9270 NaN Gennep Gennep ja \n",
"9271 NaN Gennep Gennep ja \n",
"9272 NaN Gennep Gennep ja \n",
"9273 NaN Gennep Gennep ja \n",
"9274 NaN Gennep Gennep NaN \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Contactgegevens gemeente \\\n",
"0 verkiezingen@valkenswaard.nl \n",
"1 verkiezingen@valkenswaard.nl \n",
"2 verkiezingen@valkenswaard.nl \n",
"3 verkiezingen@valkenswaard.nl \n",
"4 verkiezingen@valkenswaard.nl \n",
"... ... \n",
"9270 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9271 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9272 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9273 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
"9274 Klantcontactcentrum gemeente Gennep gemeente@g... \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-04-26 14:07:35 +02:00
" Verkiezingswebsite gemeente Verkiezingen \\\n",
"0 http://www.valkenswaard.nl/verkiezingen NaN \n",
"1 http://www.valkenswaard.nl/verkiezingen NaN \n",
"2 http://www.valkenswaard.nl/verkiezingen NaN \n",
"3 http://www.valkenswaard.nl/verkiezingen NaN \n",
"4 http://www.valkenswaard.nl/verkiezingen NaN \n",
"... ... ... \n",
2022-05-03 13:06:50 +02:00
"9270 https://www.gennep.nl NaN \n",
"9271 https://www.gennep.nl NaN \n",
"9272 https://www.gennep.nl NaN \n",
"9273 https://www.gennep.nl NaN \n",
"9274 https://www.gennep.nl NaN \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-04-26 14:07:35 +02:00
" ID UUID \\\n",
"0 NLODSGM0858stembureaus20220316009 3a612b2151fa4ab491b9e331355e6258 \n",
"1 NLODSGM0858stembureaus20220316009 9a01d765af0a467ea37f08d92db114ba \n",
"2 NLODSGM0858stembureaus20220316009 fc5869d33fbc4b06be659149fa615f4c \n",
"3 NLODSGM0858stembureaus20220316009 4427cc0b39e040ba8f75c333f19d66f0 \n",
"4 NLODSGM0858stembureaus20220316009 a893bb9add324ce29769f1c39afcc48d \n",
"... ... ... \n",
2022-05-03 13:06:50 +02:00
"9270 NLODSGM0907stembureaus20220316009 f744546cd6894e5e9a4db4bbfd81b4ee \n",
"9271 NLODSGM0907stembureaus20220316009 1270081b1dc74cd7bea0f45973650408 \n",
"9272 NLODSGM0907stembureaus20220316009 447c7742604345139e41def4cf1e4d3c \n",
"9273 NLODSGM0907stembureaus20220316009 049cfd258c174bc49abf17883396d083 \n",
"9274 NLODSGM0907stembureaus20220316009 1e8cbe96e72c4c6ba6303f47bec8cdb5 \n",
2022-04-20 13:03:38 +02:00
"\n",
" geometry \n",
"0 POINT (5.45515 51.34711) \n",
"1 POINT (5.45137 51.34955) \n",
"2 POINT (5.44827 51.35702) \n",
"3 POINT (5.44871 51.36022) \n",
"4 POINT (5.45331 51.36514) \n",
"... ... \n",
2022-05-03 13:06:50 +02:00
"9270 POINT (5.98266 51.69726) \n",
"9271 POINT (5.98127 51.69000) \n",
"9272 POINT (5.95118 51.72591) \n",
"9273 POINT (6.01556 51.70976) \n",
"9274 POINT (5.98514 51.70189) \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
"[8089 rows x 40 columns]"
2022-04-20 13:03:38 +02:00
]
},
2022-04-26 14:07:35 +02:00
"execution_count": 12,
2022-04-20 13:03:38 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2022-05-03 13:06:50 +02:00
"gdf_wims_dedupe = gdf_wims.drop_duplicates(subset =\"geometry\", keep = False)\n",
"df_geojson_dedupe = df_geojson_clean.drop_duplicates(subset =\"geometry\", keep = False)\n",
"gdf_wims_dedupe"
2022-04-20 13:03:38 +02:00
]
},
{
"cell_type": "code",
2022-04-26 14:07:35 +02:00
"execution_count": 13,
2022-04-20 13:03:38 +02:00
"metadata": {},
"outputs": [
2022-05-03 13:06:50 +02:00
{
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAuIAAANOCAYAAABUSmkeAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOz9e7Qd1Z3nCX53PM/jXj2u7pWMhMBXCBtM90K2JSAlY1vGDwzprPJ0ZXW5liGNjVXZFFWZtqfXdE2t7p7VvbLWVOeAsYtiumRsbCDLNZ1TTa/ONMZpk0pjCwOSnaJq0thGIAOSQPelxz2viBOP+eNox42Is3fEjjjn3If4fdZioXte8Y747t/+/b4/FoYhCIIgCIIgCIJYXrSV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O5svj+d+HzrRwIPPLcDxe2J3tunjwecWAKBPjHP7wTAMhUWTlmUBGJ6PNyHG8zz89re/xY4dOyhNZRVSODVlOaDUFIIgCCKPMAxx/vx5vPXWW4WK8jRNw4YNGzAxMbGqpuy5fV/WfyqiOy8invd+HO6CwnOt73riJGab/QWZU3Udj3z68r7XuRiPC3Fe8BkX+EWwbRuO4xT+3tsd27YxPT39tknVWk0MlJpCEARBEKuNTqeDN998M0qXKEIQBFhYWMDCwgKq1WoUJR+l/3IYhn252a7rJv4epuNIFqoFjIwxBEGQEG5zAhEue900zcjvm8P3A0XBlx/HcfD666/jne98J3mNryJIiBMEQRBrBs/zMDc3h7m54fSIa7fbOHXqFN566y1s3LgRGzduhGVZkQc2t+bj/47/J3td9P5Kzz7z/Hi+XTw9JUv
"text/plain": [
"<Figure size 1080x1080 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"fig, ax = plt.subplots(figsize = (15,15))\n",
"nl_map.to_crs(epsg=4326).plot(ax=ax, color='lightgrey')\n",
"gdf_wims_dedupe.plot(ax=ax)"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAuIAAANOCAYAAABUSmkeAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOz9e7Rc1X3ni37netZj6723ZAkJWSDZxpy+UgwCgvyIDDiYV+Jx0qfjjlEsm3DbhE47dvre09f39Lkj3fTt7gSM3TQerdghBtzp46Qv52AHE2Oi2I4AIeyI9khwLEAWeiDtl6S967VWrcf9ozTXXrXWnGvNVY/9kH6fMRi29t5VtWrVqq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n7u3DmUSiWsXr0aK1asgK7rC3Ck/cMTQlqtFmZmZlCr1Qo3I9q2rZydzR+Pe7/3H63hkZem4fgdsTtR9/HIS9MAkBLjPH4wDENh06RlWQAGl+NNiPE8Dz//+c9xxRVXkE1lEVLYmjIfkDWFIAiCyCMMQ5w/fx6nT58u1JSnaRpWrlyJ1atXL6otex7fl/WfiujOq4jn/T4OT0HhXuu9T53ARD3dkDlW1fHYxzamfs7FeFyI84bPuMAvgm3bcByn8O0udWzbxpYtWy4Zq9Zioi9rCkEQBEEsNlqtFt5+++3ILlGEIAgwPT2N6elplMvlqEo+zPzlMAxT3mzXdbv+PcjEkSxUGxgZYwiCoEu4TQpEuOznpmlGed8cfh6oCj7/OI6Dt956C+985zspa3wRQUKcIAiCWDJ4nofJyUlMTg5mRlyz2cTJkydx+vRprFq1CqtWrYJlWVEGNo/m4/8//p/s56LfL/TuM/fH8+fF7SlZ4t80zWi
"text/plain": [
"<Figure size 1080x1080 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"fig, ax = plt.subplots(figsize = (15,15))\n",
"nl_map.to_crs(epsg=4326).plot(ax=ax, color='lightgrey')\n",
"df_geojson_clean.plot(ax=ax)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Nu we een mooie kaart hebben van nederland met de stemlokalen erop, kunnen we gaan kijken naar hoe dit verhoud met de bevolkingsdichtheid als eerste voorbeeld. De kaart is opgehaald van het CBS, eerst gaan we kijken hoe de kaart er op zichzelf met dezelfde projectie uitziet."
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAOQAAAD4CAYAAAD8Q0ptAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6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4Zgn5Koyn9xziN+96hgMLlRs2ruX779hEUaErp76ke+DIAj//yYfZkigsRbCh5iEM2h+qASrUvse7Ls5ynU5XgpRMvMgLywqIKFVAXRO0cSRPnt4SycGqMSmT/HrxOWYVE3CzoOhNshgbuCTqClG9yQdES/nWDovh1agYKkIvzqM7DvDQswdYMREuW7eSGzeuYfu+Y7znNRu5ddPaU/6ZLo5ZQr6K4uCxno/c/Qx3PbWXI8cW0FLYdXCBe7fsoajy/W+4ktdvvvBlf/1Hdhzgn33yIeaz2rgkU6eU6BRVEDegJFJpTObmoiAKDFZxM4oo5tE0GlGNVAWXqI4xPIxq6llNA3FVtAExaoBGG5tnUpE4SxYKjmFDsHH6fmBu2TIkE7OhvHGmjtpuCe6Kw6SU8QHhtWLmoMpCFZ7edZindh3CBd5104ZT+XUdN2YJ+SqJh7Yf4Bc/9yiHjvV0Wrhp0zre+5pLWb96Gf/hD5/ih954Ba+5/OU/zQ/ND/zbP3ySY31sX7gHaqqQZ0MgmTEuyZEx8C7qm2b76l3ccupxhpNMyqEfmIhiMkQyFkVMEM3Kicbnu1DNECnZGgtqjmuMQzoC8AFFVTGLc2a1IccnAiVaVcm21iSuD3NcDbxEoqugJtA5Yk4dDBehK4V1Kybcevm6U/iNHT9
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"nl_map_cbs = gpd.read_file(r'../data/shape/Netherlands_shapefile/CBS_vk500_2020_v1.shp')\n",
"nl_map_cbs.to_crs(epsg=4326).plot()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Het verwerken van de 100m bij 100m vierkanten kaar duurde heel lang (langer dan een half uur) op de laptop, en is dus niet ideaal tenzij we dit niveau van detail écht nodig hebben. Er is namelijk nog een andere kaart met dezelfde gegevens beschikbaar, maar met een grid van 500 bij 500 meter in plaats van 100 bij 100. Laten we dus kijken hoe vaak een stemlokaal dichterbij dan 100 meter van de dichtstbijzijnde andere is. De makkelijkste manier om dat te doen zonder alle punten met alle andere te vergelijken (heel veel moeite), is een extra dataframe maken als een kopie, alle indexen 1 opschuiven (want alle stemlokalen zijn al in een volgorde van clustering), en dan de laagste afstand bekijken."
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"11165 0.002608\n",
"1021 0.004853\n",
"3196 0.004875\n",
"1923 2.693202\n",
"3757 3.609362\n",
" ... \n",
"7444 253385.654588\n",
"9711 263408.187856\n",
"4392 266925.200994\n",
"9297 271954.076837\n",
"0 NaN\n",
"Name: distance, Length: 11670, dtype: float64\n"
]
}
],
"source": [
"df_shifted = df_geojson_clean.to_crs('EPSG:28992')\n",
"\n",
"df_shifted['geometry (shifted)'] = df_shifted['geometry'].shift(periods=1)\n",
"df_shifted['distance'] = df_shifted['geometry'].distance(df_shifted['geometry (shifted)'])\n",
"df_shifted.sort_values(['distance'], inplace=True, ascending=True)\n",
"zero_mask_booth = df_shifted['distance'] == 0.000000\n",
"df_shifted = df_shifted[~zero_mask_booth]\n",
"print(df_shifted['distance'])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We kunnen dus vaststellen dat afstanden van onder de 500 meter waarschijnlijk zeldzaam zijn, en we verder kunnen gaan met de 500 meter bij 500 meter kaart. Laten we nu dus een projectie proberen te maken met de bevolkingsdichtheid erop om het te vergelijken met de stemlokalen en hun posities en clustering."
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['c28992r500', 'INWONER', 'MAN', 'VROUW', 'INW_014', 'INW_1524', 'INW_2544', 'INW_4564', 'INW_65PL', 'P_NL_ACHTG', 'P_WE_MIG_A', 'P_NW_MIG_A', 'AANTAL_HH', 'TOTHH_EENP', 'TOTHH_MPZK', 'HH_EENOUD', 'HH_TWEEOUD', 'GEM_HH_GR', 'WONING', 'WONVOOR45', 'WON_4564', 'WON_6574', 'WON_7584', 'WON_8594', 'WON_9504', 'WON_0514', 'WON_1524', 'WON_MRGEZ', 'P_KOOPWON', 'P_HUURWON', 'WON_HCORP', 'WON_NBEW', 'WOZWONING', 'UITKMINAOW', 'OAD', 'STED', 'geometry']\n"
]
},
2022-04-20 13:03:38 +02:00
{
"data": {
2022-04-26 14:07:35 +02:00
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
2022-05-03 13:06:50 +02:00
" <th>c28992r500</th>\n",
" <th>INWONER</th>\n",
2022-04-26 14:07:35 +02:00
" <th>geometry</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>E2260N6190</td>\n",
" <td>-99997</td>\n",
" <td>POLYGON ((226000.000 619000.000, 226000.000 61...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>E2265N6190</td>\n",
" <td>-99997</td>\n",
" <td>POLYGON ((226500.000 619500.000, 227000.000 61...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>E2270N6190</td>\n",
" <td>-99997</td>\n",
" <td>POLYGON ((227000.000 619500.000, 227500.000 61...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>E2275N6190</td>\n",
" <td>-99997</td>\n",
" <td>POLYGON ((227500.000 619500.000, 228000.000 61...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>E2280N6190</td>\n",
" <td>-99997</td>\n",
" <td>POLYGON ((228000.000 619500.000, 228500.000 61...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>151103</th>\n",
" <td>E1995N3070</td>\n",
" <td>-99997</td>\n",
" <td>POLYGON ((199500.000 307500.000, 200000.000 30...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>151104</th>\n",
" <td>E1905N3065</td>\n",
" <td>-99997</td>\n",
" <td>POLYGON ((190500.000 307000.000, 191000.000 30...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>151105</th>\n",
" <td>E1910N3065</td>\n",
" <td>-99997</td>\n",
" <td>POLYGON ((191000.000 307000.000, 191500.000 30...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>151106</th>\n",
" <td>E1920N3065</td>\n",
" <td>20</td>\n",
" <td>POLYGON ((192000.000 307000.000, 192500.000 30...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>151107</th>\n",
" <td>E1925N3065</td>\n",
" <td>-99997</td>\n",
" <td>POLYGON ((192500.000 307000.000, 193000.000 30...</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>151108 rows × 3 columns</p>\n",
"</div>"
],
"text/plain": [
" c28992r500 INWONER geometry\n",
"0 E2260N6190 -99997 POLYGON ((226000.000 619000.000, 226000.000 61...\n",
"1 E2265N6190 -99997 POLYGON ((226500.000 619500.000, 227000.000 61...\n",
"2 E2270N6190 -99997 POLYGON ((227000.000 619500.000, 227500.000 61...\n",
"3 E2275N6190 -99997 POLYGON ((227500.000 619500.000, 228000.000 61...\n",
"4 E2280N6190 -99997 POLYGON ((228000.000 619500.000, 228500.000 61...\n",
"... ... ... ...\n",
"151103 E1995N3070 -99997 POLYGON ((199500.000 307500.000, 200000.000 30...\n",
"151104 E1905N3065 -99997 POLYGON ((190500.000 307000.000, 191000.000 30...\n",
"151105 E1910N3065 -99997 POLYGON ((191000.000 307000.000, 191500.000 30...\n",
"151106 E1920N3065 20 POLYGON ((192000.000 307000.000, 192500.000 30...\n",
"151107 E1925N3065 -99997 POLYGON ((192500.000 307000.000, 193000.000 30...\n",
"\n",
"[151108 rows x 3 columns]"
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 17,
2022-04-26 14:07:35 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"print(list(nl_map_cbs))\n",
"nl_map_dst = nl_map_cbs.drop(columns=['MAN', 'VROUW', 'INW_014', 'INW_1524', 'INW_2544', 'INW_4564', 'INW_65PL', 'P_NL_ACHTG', 'P_WE_MIG_A', 'P_NW_MIG_A', 'AANTAL_HH', 'TOTHH_EENP', 'TOTHH_MPZK', 'HH_EENOUD', 'HH_TWEEOUD', 'GEM_HH_GR', 'WONING', 'WONVOOR45', 'WON_4564', 'WON_6574', 'WON_7584', 'WON_8594', 'WON_9504', 'WON_0514', 'WON_1524', 'WON_MRGEZ', 'P_KOOPWON', 'P_HUURWON', 'WON_HCORP', 'WON_NBEW', 'WOZWONING', 'UITKMINAOW', 'OAD', 'STED'])\n",
"\n",
"nl_map_dst"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We kunnen zien dat er gemeente zijn die geen stemlokalen hebben, dit klopt. [In de verkiezingen van 2022 hebben 12 gemeentes niet meegedaan](https://nl.wikipedia.org/wiki/Nederlandse_gemeenteraadsverkiezingen_2022). Er zijn dus in totaal 333 gemeentes met stemlokalen. We willen de bevolkingsdichtheiddata van de gemeentes die niet meededen dus weggooien, hiervoor moeten we eerst kijken welke alleen binnen de gemeentes vallen die we niet willen houden."
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 18,
2022-04-26 14:07:35 +02:00
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0 Gemeenteraad Aa en Hunze 2022\n",
"1 Gemeenteraad Aa en Hunze 2022\n",
"2 Gemeenteraad Aa en Hunze 2022\n",
"3 Gemeenteraad Aa en Hunze 2022\n",
"4 Gemeenteraad Aa en Hunze 2022\n",
" ... \n",
"12591 Gemeenteraad 's-Hertogenbosch 2022\n",
"12592 Gemeenteraad 's-Hertogenbosch 2022\n",
"12593 Gemeenteraad 's-Hertogenbosch 2022\n",
"12594 Gemeenteraad 's-Hertogenbosch 2022\n",
"12595 Gemeenteraad 's-Hertogenbosch 2022\n",
"Name: electionName, Length: 12596, dtype: object\n",
"0 Aa en Hunze\n",
"27 Aalsmeer\n",
"46 Aalten\n",
"74 Achtkarspelen\n",
"95 Alblasserdam\n",
" ... \n",
"11976 Zwartewaterland\n",
"11997 Zwijndrecht\n",
"12031 Zwolle\n",
"12122 's-Gravenhage\n",
"12495 's-Hertogenbosch\n",
"Name: electionName, Length: 333, dtype: object\n"
]
}
],
"source": [
"print(df_geojson['electionName'])\n",
"\n",
"#get all municipalities that are in the election\n",
"gemeentes = df_geojson['electionName'].str.slice(13, -5).drop_duplicates()\n",
"print(gemeentes)"
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 19,
2022-04-26 14:07:35 +02:00
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Shape of clean: (333, 38)\n",
"Shape of election: (330, 38)\n"
]
},
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>GM_CODE</th>\n",
" <th>GM_NAAM</th>\n",
" <th>H2O</th>\n",
" <th>OAD</th>\n",
" <th>STED</th>\n",
" <th>BEV_DICHTH</th>\n",
" <th>AANT_INW</th>\n",
" <th>AANT_MAN</th>\n",
" <th>AANT_VROUW</th>\n",
" <th>P_00_14_JR</th>\n",
" <th>...</th>\n",
" <th>P_TURKIJE</th>\n",
" <th>P_OVER_NW</th>\n",
" <th>OPP_TOT</th>\n",
" <th>OPP_LAND</th>\n",
" <th>OPP_WATER</th>\n",
" <th>JRSTATCODE</th>\n",
" <th>JAAR</th>\n",
" <th>Shape_Leng</th>\n",
" <th>Shape_Area</th>\n",
" <th>geometry</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>113</th>\n",
" <td>GM0164</td>\n",
" <td>Hengelo</td>\n",
" <td>NEE</td>\n",
" <td>1845</td>\n",
" <td>2</td>\n",
" <td>1332</td>\n",
" <td>81049</td>\n",
" <td>40776</td>\n",
" <td>40273</td>\n",
" <td>15</td>\n",
" <td>...</td>\n",
" <td>6</td>\n",
" <td>7</td>\n",
" <td>6183</td>\n",
" <td>6084</td>\n",
" <td>99</td>\n",
" <td>2021GM0164</td>\n",
" <td>2021</td>\n",
" <td>47510.255914</td>\n",
" <td>6.183056e+07</td>\n",
" <td>POLYGON ((251978.591 481220.258, 251979.382 48...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>191</th>\n",
" <td>GM0373</td>\n",
" <td>Bergen (NH.)</td>\n",
" <td>NEE</td>\n",
" <td>819</td>\n",
" <td>4</td>\n",
" <td>300</td>\n",
" <td>29715</td>\n",
" <td>14317</td>\n",
" <td>15398</td>\n",
" <td>12</td>\n",
" <td>...</td>\n",
" <td>0</td>\n",
" <td>3</td>\n",
" <td>12023</td>\n",
" <td>9896</td>\n",
" <td>2127</td>\n",
" <td>2021GM0373</td>\n",
" <td>2021</td>\n",
" <td>57488.474563</td>\n",
" <td>9.987418e+07</td>\n",
" <td>POLYGON ((105976.650 529056.951, 106002.347 52...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>328</th>\n",
" <td>GM0893</td>\n",
" <td>Bergen (L.)</td>\n",
" <td>NEE</td>\n",
" <td>318</td>\n",
" <td>5</td>\n",
" <td>127</td>\n",
" <td>13108</td>\n",
" <td>6568</td>\n",
" <td>6540</td>\n",
" <td>13</td>\n",
" <td>...</td>\n",
" <td>0</td>\n",
" <td>3</td>\n",
" <td>10850</td>\n",
" <td>10324</td>\n",
" <td>525</td>\n",
" <td>2021GM0893</td>\n",
" <td>2021</td>\n",
" <td>61497.563571</td>\n",
" <td>1.084951e+08</td>\n",
" <td>POLYGON ((199768.270 409749.960, 199758.060 40...</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>3 rows × 38 columns</p>\n",
"</div>"
],
"text/plain": [
" GM_CODE GM_NAAM H2O OAD STED BEV_DICHTH AANT_INW AANT_MAN \\\n",
"113 GM0164 Hengelo NEE 1845 2 1332 81049 40776 \n",
"191 GM0373 Bergen (NH.) NEE 819 4 300 29715 14317 \n",
"328 GM0893 Bergen (L.) NEE 318 5 127 13108 6568 \n",
"\n",
" AANT_VROUW P_00_14_JR ... P_TURKIJE P_OVER_NW OPP_TOT OPP_LAND \\\n",
"113 40273 15 ... 6 7 6183 6084 \n",
"191 15398 12 ... 0 3 12023 9896 \n",
"328 6540 13 ... 0 3 10850 10324 \n",
"\n",
" OPP_WATER JRSTATCODE JAAR Shape_Leng Shape_Area \\\n",
"113 99 2021GM0164 2021 47510.255914 6.183056e+07 \n",
"191 2127 2021GM0373 2021 57488.474563 9.987418e+07 \n",
"328 525 2021GM0893 2021 61497.563571 1.084951e+08 \n",
"\n",
" geometry \n",
"113 POLYGON ((251978.591 481220.258, 251979.382 48... \n",
"191 POLYGON ((105976.650 529056.951, 106002.347 52... \n",
"328 POLYGON ((199768.270 409749.960, 199758.060 40... \n",
"\n",
"[3 rows x 38 columns]"
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 19,
2022-04-26 14:07:35 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#First let's remove the municipalities that don't have an Election from the municipality map\n",
"remove_lst = [\"Boxtel\", \"Eemsdelta\", \"Oisterwijk\", \"Vught\", \"Heerhugowaard\", \"Langedijk\", \"Boxmeer\", \"Cuijk\", \"Sint Anthonis\", \"Mill en Sint Hubert\", \"Grave\", \"Landerd\", \"Uden\", \"Brielle\", \"Hellevoetsluis\", \"Westvoorne\", \"Purmerend\", \"Beemster\", \"Weesp\"]\n",
"\n",
"\n",
"nl_map_clean = nl_map[~nl_map[\"GM_NAAM\"].isin(remove_lst)]\n",
"nl_map_clean = nl_map_clean.query(\"H2O != 'JA'\")\n",
"nl_map_clean = nl_map_clean.query(\"GM_NAAM != 'Buitenland'\")\n",
"\n",
"\n",
"nl_map_election = nl_map[nl_map[\"GM_NAAM\"].isin(gemeentes)]\n",
"nl_map_election = nl_map_election.query(\"H2O != 'JA'\")\n",
"\n",
"print(\"Shape of clean: {}\".format(nl_map_clean.shape))\n",
"print(\"Shape of election: {}\".format(nl_map_election.shape))\n",
"\n",
"diff = pd.concat([nl_map_election, nl_map_clean]).drop_duplicates(keep=False)\n",
"diff"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Het is een andere vorm omdat deze drie gemeentes een andere format hadden voor de naam van hun verkiezingen, en dus niet op dezelfde manier gefilterd konden worden, ze staan wel in de lijst, dit is dus correct, we gebruiken de clean dataframe.\n",
"Nu we dezelfde lijst hebben van gemeentes die in de verkiezingen meededen kunnen we verder."
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 20,
2022-04-26 14:07:35 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 20,
2022-04-26 14:07:35 +02:00
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
2022-05-03 13:06:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAt4AAANOCAYAAAAmhQuoAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOz9e7xkVX3mjz/7Uvc691ufc/rCaRoBGdOtNpeAaFpAEIWRXL4TE8AQle/IMBOiMYnjTOY3meFrEgJixuAEjShgnDhGjBcE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Izl5eW6v2mahmg06vyPCxguXriw5mKaiyKVJnSNwAcJ3DtdLBZ9n88r2tu3b68TXCqLGru6umoq14wxxONx3PSGHvza3h0N7AEhgjGGubk5ZLNZMMZQLBYDZyMsy0KpVMLS0hI0TUNbWxt6enqQSqWc5ywvL+P48eMwTRPd3d1IpVJIJBKwbZsWtW4wSHgTBEEQm5pSqYRXX321qYYvXAS5Ba4sw1o129qLN986Eomgt7cXsVisJgPbtm3E43FEo1EAVeEVVL1Mp9M4//zzG65yxuPxum3t6+tr6L2IFWzbRrFYxPLyMjKZjLOItVEYY1haWsLS0hI6OjrQ1dWFcrmMkydPAqjOXGSzWZTLZSSTSeTzeeoKusEg4U0QBEFsWhhjOHHiBEqlUsOCWIQsw/qlqQKePppTzrb2bquu67BtG319fY6nOghd15FIJAKfR5XNjQFjDIVCATMzM1haWlq1WZHFxUUsLi46/06lUojFYshkMiiVSrBtG8eOHUMkEkF3dze6urroGtkAkPAmCIIgNi08vcSv2ctLUwU8cSQL26V/+gKEuSzD2vs
2022-04-26 14:07:35 +02:00
"text/plain": [
"<Figure size 1080x1080 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"fig, ax = plt.subplots(figsize = (15,15))\n",
"nl_map_clean.to_crs(epsg=4326).plot(ax=ax, color='lightgrey')\n",
"df_geojson_clean.plot(ax=ax)"
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 21,
2022-04-26 14:07:35 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
2022-04-26 14:07:35 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAOMAAAD4CAYAAAAen1EUAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZ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+jP+6Fs7+fLTRwgISEBF3XGAEIgo2Sbt1t2sFCF4/ShorkkI4gN4BasXq4gEhRw85aRJOUXNKTMBcYdUMhKCRdHy8RLJ2EWtomjKKFC3a47kxJcfO8xXnjhs0VSgipHB/khK8NDeE1y2YiFP7B9m+5rF/PTtW876u3qp1nXGV4jd+ch+vvDIISY7NWuX9PHuV63ntVtX8PDeE9x21WredtXZ10xffeowf/XUQUQiWd0hEHOo5CmpGjY1Z4tUMcQyRPEIFj16Wvrp5SN1XVs7NOKdU0E0mAMGT3AdTUMGsiAxWG2q2aMpVCXS5kDw1De0LMVNuUaTvS4idOqav3hgH8k/b+fRcVQTY52arc8M8Ibtz9tNc16t64yvAPsf39rFt3cc5VUbl/Darcu5dv0Sm9kBr9q4lFdtPHvQ9chkhz+7by/kgERBAwS1KAaglRCyjU00Y1C6bH/JKgTsqSKAClnEol8UqEE0E2L0sYQnojkhJFShoxCCICEYoiZauppFQL1hFKxLGxSyN3SyJkKsiD76CMEeSwqafcQS7Pg6qsQYmZjJ7Bqa4A3bV3Jios1XnzxET1Vx+xUr6I2RvnMI9ZtrXWe8iG2mTvy3b+7i/t3HWdQX+cCrN7Fs4MUB2QCff/QQmcw7r1v3os/94uOH+dSD+5jpZJt
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
2022-04-14 15:43:51 +02:00
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
2022-04-26 14:07:35 +02:00
"nl_map_dst['savedindex'] = nl_map_dst.index #Save the index values as a new column\n",
"\n",
"intersecting = nl_map_clean.sjoin(nl_map_dst, how='inner')['savedindex'] #Find the polygons that intersect. Keep savedindex as a series\n",
"\n",
"nl_map_dst = nl_map_dst.loc[nl_map_dst.savedindex.isin(intersecting)] #Filter away these, \"savedindex is in intersecting\"\n",
"\n",
"nl_map_dst.to_crs(epsg=4326).plot()\n",
"\n"
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 22,
"metadata": {},
"outputs": [
{
2022-04-26 14:07:35 +02:00
"name": "stderr",
"output_type": "stream",
"text": [
2022-04-26 14:07:35 +02:00
"/home/lillian/anaconda3/lib/python3.9/site-packages/geopandas/geodataframe.py:1351: SettingWithCopyWarning: \n",
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
" super().__setitem__(key, value)\n"
2022-04-12 16:39:06 +02:00
]
}
],
"source": [
2022-04-26 14:07:35 +02:00
"import folium\n",
"from folium import plugins\n",
2022-04-12 16:39:06 +02:00
"\n",
2022-04-26 14:07:35 +02:00
"#Location is Amersfoort, the central point of the continental Netherlands\n",
"map = folium.Map(location = [52.155, 5.3875], zoom_start = 9, tiles=\"cartodbdark_matter\", prefer_canvas=True)\n",
"\n",
"nl_map_dst.to_crs(epsg=4326)\n",
"#Make sure the index is a string so folium can read it correctly as a key.\n",
"nl_map_dst['c28992r500'] = nl_map_dst['c28992r500'].apply(lambda x: str(x))\n",
"\n",
"nl_map_dst_zero = nl_map_dst.copy()\n",
"\n",
"zero_mask_pop = nl_map_dst['INWONER'] == -99997\n",
"nl_map_dst = nl_map_dst[~zero_mask_pop]\n",
"zero_mask_pop2 = nl_map_dst['INWONER'] == 0\n",
"nl_map_dst = nl_map_dst[~zero_mask_pop2]\n",
"\n",
"folium.Choropleth(\n",
" geo_data = nl_map_dst,\n",
" name=\"Bevolkingsdichtheid\",\n",
" data = nl_map_dst,\n",
" columns = [\"c28992r500\", \"INWONER\"],\n",
" key_on = 'feature.properties.c28992r500',\n",
" fill_color = 'RdPu',\n",
" nan_fill_color= 'white',\n",
" fill_opacity = 0.7,\n",
" nan_fill_opacity = 0.7,\n",
" line_opacity = 0,\n",
" legend_name = 'Bevolkingsdichtheid',\n",
" smooth_factor = 1.0,\n",
" show=False\n",
").add_to(map)\n",
"map\n",
"\n",
"# Renders the map to an HTML file and displays it in an embed.\n",
"def embed_map(m):\n",
" #from IPython.display import IFrame\n",
" m.save('index.html')\n",
" #return IFrame('index.html', width='100%', height='750px')"
2022-04-12 16:39:06 +02:00
]
},
{
2022-04-26 14:07:35 +02:00
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 23,
2022-04-12 16:39:06 +02:00
"metadata": {},
2022-04-26 14:07:35 +02:00
"outputs": [],
2022-04-12 16:39:06 +02:00
"source": [
2022-04-26 14:07:35 +02:00
"gdf_wims_hmp = [[point.xy[1][0], point.xy[0][0]] for point in gdf_wims.geometry]\n",
"\n",
"plugins.HeatMap(gdf_wims_hmp, name=\"Stemlokalen Heatmap\").add_to(map)\n",
"\n",
"folium.LayerControl().add_to(map)\n",
"\n",
"\n",
"\n",
"embed_map(map)\n",
"\n",
"\n"
2022-04-12 16:39:06 +02:00
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 24,
2022-04-12 16:39:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>c28992r500</th>\n",
" <th>INWONER</th>\n",
" <th>geometry</th>\n",
2022-04-26 14:07:35 +02:00
" <th>savedindex</th>\n",
2022-04-12 16:39:06 +02:00
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
2022-04-14 15:43:51 +02:00
" <th>2</th>\n",
" <td>E2270N6190</td>\n",
" <td>-99997</td>\n",
2022-04-26 14:07:35 +02:00
" <td>POINT (227250.000 619250.000)</td>\n",
" <td>2</td>\n",
2022-04-12 16:39:06 +02:00
" </tr>\n",
" <tr>\n",
2022-04-14 15:43:51 +02:00
" <th>3</th>\n",
" <td>E2275N6190</td>\n",
" <td>-99997</td>\n",
2022-04-26 14:07:35 +02:00
" <td>POINT (227750.000 619250.000)</td>\n",
" <td>3</td>\n",
2022-04-12 16:39:06 +02:00
" </tr>\n",
" <tr>\n",
2022-04-14 15:43:51 +02:00
" <th>4</th>\n",
" <td>E2280N6190</td>\n",
" <td>-99997</td>\n",
2022-04-26 14:07:35 +02:00
" <td>POINT (228250.000 619250.000)</td>\n",
" <td>4</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>E2265N6185</td>\n",
" <td>-99997</td>\n",
" <td>POINT (226750.000 618750.000)</td>\n",
" <td>7</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>E2270N6185</td>\n",
" <td>-99997</td>\n",
" <td>POINT (227250.000 618750.000)</td>\n",
" <td>8</td>\n",
2022-04-12 16:39:06 +02:00
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>...</td>\n",
2022-04-12 16:39:06 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>151102</th>\n",
" <td>E1990N3070</td>\n",
2022-04-14 15:43:51 +02:00
" <td>-99997</td>\n",
2022-04-26 14:07:35 +02:00
" <td>POINT (199250.000 307250.000)</td>\n",
" <td>151102</td>\n",
2022-04-12 16:39:06 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>151103</th>\n",
" <td>E1995N3070</td>\n",
2022-04-14 15:43:51 +02:00
" <td>-99997</td>\n",
2022-04-26 14:07:35 +02:00
" <td>POINT (199750.000 307250.000)</td>\n",
" <td>151103</td>\n",
2022-04-12 16:39:06 +02:00
" </tr>\n",
" <tr>\n",
2022-04-14 15:43:51 +02:00
" <th>151105</th>\n",
" <td>E1910N3065</td>\n",
" <td>-99997</td>\n",
2022-04-26 14:07:35 +02:00
" <td>POINT (191250.000 306750.000)</td>\n",
" <td>151105</td>\n",
2022-04-12 16:39:06 +02:00
" </tr>\n",
" <tr>\n",
" <th>151106</th>\n",
" <td>E1920N3065</td>\n",
" <td>20</td>\n",
2022-04-26 14:07:35 +02:00
" <td>POINT (192250.000 306750.000)</td>\n",
" <td>151106</td>\n",
2022-04-12 16:39:06 +02:00
" </tr>\n",
2022-04-14 15:43:51 +02:00
" <tr>\n",
" <th>151107</th>\n",
" <td>E1925N3065</td>\n",
" <td>-99997</td>\n",
2022-04-26 14:07:35 +02:00
" <td>POINT (192750.000 306750.000)</td>\n",
" <td>151107</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
2022-04-12 16:39:06 +02:00
" </tbody>\n",
"</table>\n",
2022-04-26 14:07:35 +02:00
"<p>140002 rows × 4 columns</p>\n",
2022-04-12 16:39:06 +02:00
"</div>"
],
"text/plain": [
2022-04-26 14:07:35 +02:00
" c28992r500 INWONER geometry savedindex\n",
"2 E2270N6190 -99997 POINT (227250.000 619250.000) 2\n",
"3 E2275N6190 -99997 POINT (227750.000 619250.000) 3\n",
"4 E2280N6190 -99997 POINT (228250.000 619250.000) 4\n",
"7 E2265N6185 -99997 POINT (226750.000 618750.000) 7\n",
"8 E2270N6185 -99997 POINT (227250.000 618750.000) 8\n",
"... ... ... ... ...\n",
"151102 E1990N3070 -99997 POINT (199250.000 307250.000) 151102\n",
"151103 E1995N3070 -99997 POINT (199750.000 307250.000) 151103\n",
"151105 E1910N3065 -99997 POINT (191250.000 306750.000) 151105\n",
"151106 E1920N3065 20 POINT (192250.000 306750.000) 151106\n",
"151107 E1925N3065 -99997 POINT (192750.000 306750.000) 151107\n",
2022-04-12 16:39:06 +02:00
"\n",
2022-04-26 14:07:35 +02:00
"[140002 rows x 4 columns]"
2022-04-12 16:39:06 +02:00
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 24,
2022-04-12 16:39:06 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2022-04-26 14:07:35 +02:00
"nl_map_dst_points = nl_map_dst.copy()\n",
"nl_map_dst_points['geometry'] = nl_map_dst_points['geometry'].centroid\n",
"\n",
2022-04-26 14:07:35 +02:00
"nl_map_dst_zero_points = nl_map_dst_zero.copy()\n",
"nl_map_dst_zero_points['geometry'] = nl_map_dst_zero_points['geometry'].centroid\n",
"\n",
"nl_map_dst_zero_points"
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 25,
2022-04-26 14:07:35 +02:00
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
2022-04-26 14:07:35 +02:00
" <th>c28992r500</th>\n",
" <th>INWONER</th>\n",
" <th>geometry</th>\n",
2022-04-26 14:07:35 +02:00
" <th>savedindex</th>\n",
" <th>_id</th>\n",
" <th>Gemeente</th>\n",
" <th>CBS gemeentecode</th>\n",
" <th>Nummer stembureau</th>\n",
" <th>Naam stembureau</th>\n",
" <th>Gebruiksdoel van het gebouw</th>\n",
" <th>...</th>\n",
" <th>Gehandicaptentoilet</th>\n",
" <th>Kieskring ID</th>\n",
" <th>Hoofdstembureau</th>\n",
" <th>Tellocatie</th>\n",
" <th>Contactgegevens gemeente</th>\n",
" <th>Verkiezingswebsite gemeente</th>\n",
" <th>Verkiezingen</th>\n",
" <th>ID</th>\n",
" <th>UUID</th>\n",
" <th>dist</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>0</th>\n",
" <td>E2050N6110</td>\n",
" <td>5</td>\n",
" <td>POINT (205250.000 611250.000)</td>\n",
" <td>267</td>\n",
" <td>30871</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>GM0088</td>\n",
" <td>1</td>\n",
" <td>Gemeentehuis (Raadzaal)</td>\n",
" <td>kantoorfunctie</td>\n",
" <td>...</td>\n",
" <td>ja</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>NaN</td>\n",
" <td>postbus20@schiermonnikoog.nl, 0519-535050</td>\n",
" <td>https://www.schiermonnikoog.nl/in-de-gemeente/...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0088stembureaus20220316009</td>\n",
" <td>35abba36eca7485c89e82b2917633ae7</td>\n",
" <td>1331.950309</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>E2060N6110</td>\n",
" <td>15</td>\n",
2022-04-26 14:07:35 +02:00
" <td>POINT (206250.000 611250.000)</td>\n",
" <td>269</td>\n",
" <td>30871</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>GM0088</td>\n",
" <td>1</td>\n",
" <td>Gemeentehuis (Raadzaal)</td>\n",
" <td>kantoorfunctie</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>ja</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>NaN</td>\n",
" <td>postbus20@schiermonnikoog.nl, 0519-535050</td>\n",
" <td>https://www.schiermonnikoog.nl/in-de-gemeente/...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0088stembureaus20220316009</td>\n",
" <td>35abba36eca7485c89e82b2917633ae7</td>\n",
" <td>688.536284</td>\n",
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>2</th>\n",
" <td>E2055N6105</td>\n",
" <td>20</td>\n",
" <td>POINT (205750.000 610750.000)</td>\n",
" <td>292</td>\n",
" <td>30871</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>GM0088</td>\n",
" <td>1</td>\n",
" <td>Gemeentehuis (Raadzaal)</td>\n",
" <td>kantoorfunctie</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>ja</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>NaN</td>\n",
" <td>postbus20@schiermonnikoog.nl, 0519-535050</td>\n",
" <td>https://www.schiermonnikoog.nl/in-de-gemeente/...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0088stembureaus20220316009</td>\n",
" <td>35abba36eca7485c89e82b2917633ae7</td>\n",
" <td>672.375861</td>\n",
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>3</th>\n",
" <td>E2060N6105</td>\n",
" <td>185</td>\n",
" <td>POINT (206250.000 610750.000)</td>\n",
" <td>293</td>\n",
" <td>30871</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>GM0088</td>\n",
" <td>1</td>\n",
" <td>Gemeentehuis (Raadzaal)</td>\n",
" <td>kantoorfunctie</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>ja</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>NaN</td>\n",
" <td>postbus20@schiermonnikoog.nl, 0519-535050</td>\n",
" <td>https://www.schiermonnikoog.nl/in-de-gemeente/...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0088stembureaus20220316009</td>\n",
" <td>35abba36eca7485c89e82b2917633ae7</td>\n",
" <td>228.220493</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>E2065N6105</td>\n",
" <td>340</td>\n",
" <td>POINT (206750.000 610750.000)</td>\n",
" <td>294</td>\n",
" <td>30871</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>GM0088</td>\n",
" <td>1</td>\n",
" <td>Gemeentehuis (Raadzaal)</td>\n",
" <td>kantoorfunctie</td>\n",
" <td>...</td>\n",
" <td>ja</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>Schiermonnikoog</td>\n",
" <td>NaN</td>\n",
" <td>postbus20@schiermonnikoog.nl, 0519-535050</td>\n",
" <td>https://www.schiermonnikoog.nl/in-de-gemeente/...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0088stembureaus20220316009</td>\n",
" <td>35abba36eca7485c89e82b2917633ae7</td>\n",
" <td>389.974214</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
2022-04-26 14:07:35 +02:00
"<p>5 rows × 44 columns</p>\n",
"</div>"
],
"text/plain": [
2022-04-26 14:07:35 +02:00
" c28992r500 INWONER geometry savedindex _id \\\n",
"0 E2050N6110 5 POINT (205250.000 611250.000) 267 30871 \n",
"1 E2060N6110 15 POINT (206250.000 611250.000) 269 30871 \n",
"2 E2055N6105 20 POINT (205750.000 610750.000) 292 30871 \n",
"3 E2060N6105 185 POINT (206250.000 610750.000) 293 30871 \n",
"4 E2065N6105 340 POINT (206750.000 610750.000) 294 30871 \n",
"\n",
2022-04-26 14:07:35 +02:00
" Gemeente CBS gemeentecode Nummer stembureau \\\n",
"0 Schiermonnikoog GM0088 1 \n",
"1 Schiermonnikoog GM0088 1 \n",
"2 Schiermonnikoog GM0088 1 \n",
"3 Schiermonnikoog GM0088 1 \n",
"4 Schiermonnikoog GM0088 1 \n",
"\n",
" Naam stembureau Gebruiksdoel van het gebouw ... \\\n",
"0 Gemeentehuis (Raadzaal) kantoorfunctie ... \n",
"1 Gemeentehuis (Raadzaal) kantoorfunctie ... \n",
"2 Gemeentehuis (Raadzaal) kantoorfunctie ... \n",
"3 Gemeentehuis (Raadzaal) kantoorfunctie ... \n",
"4 Gemeentehuis (Raadzaal) kantoorfunctie ... \n",
"\n",
" Gehandicaptentoilet Kieskring ID Hoofdstembureau Tellocatie \\\n",
"0 ja Schiermonnikoog Schiermonnikoog NaN \n",
"1 ja Schiermonnikoog Schiermonnikoog NaN \n",
"2 ja Schiermonnikoog Schiermonnikoog NaN \n",
"3 ja Schiermonnikoog Schiermonnikoog NaN \n",
"4 ja Schiermonnikoog Schiermonnikoog NaN \n",
"\n",
" Contactgegevens gemeente \\\n",
"0 postbus20@schiermonnikoog.nl, 0519-535050 \n",
"1 postbus20@schiermonnikoog.nl, 0519-535050 \n",
"2 postbus20@schiermonnikoog.nl, 0519-535050 \n",
"3 postbus20@schiermonnikoog.nl, 0519-535050 \n",
"4 postbus20@schiermonnikoog.nl, 0519-535050 \n",
"\n",
2022-04-26 14:07:35 +02:00
" Verkiezingswebsite gemeente Verkiezingen \\\n",
"0 https://www.schiermonnikoog.nl/in-de-gemeente/... NaN \n",
"1 https://www.schiermonnikoog.nl/in-de-gemeente/... NaN \n",
"2 https://www.schiermonnikoog.nl/in-de-gemeente/... NaN \n",
"3 https://www.schiermonnikoog.nl/in-de-gemeente/... NaN \n",
"4 https://www.schiermonnikoog.nl/in-de-gemeente/... NaN \n",
"\n",
2022-04-26 14:07:35 +02:00
" ID UUID \\\n",
"0 NLODSGM0088stembureaus20220316009 35abba36eca7485c89e82b2917633ae7 \n",
"1 NLODSGM0088stembureaus20220316009 35abba36eca7485c89e82b2917633ae7 \n",
"2 NLODSGM0088stembureaus20220316009 35abba36eca7485c89e82b2917633ae7 \n",
"3 NLODSGM0088stembureaus20220316009 35abba36eca7485c89e82b2917633ae7 \n",
"4 NLODSGM0088stembureaus20220316009 35abba36eca7485c89e82b2917633ae7 \n",
"\n",
2022-04-26 14:07:35 +02:00
" dist \n",
"0 1331.950309 \n",
"1 688.536284 \n",
"2 672.375861 \n",
"3 228.220493 \n",
"4 389.974214 \n",
"\n",
"[5 rows x 44 columns]"
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2022-04-26 14:07:35 +02:00
"import numpy as np\n",
"\n",
2022-04-26 14:07:35 +02:00
"from scipy.spatial import cKDTree\n",
"from shapely.geometry import Point\n",
"#Found on https://gis.stackexchange.com/questions/222315/finding-nearest-point-in-other-geodataframe-using-geopandas\n",
"def ckdnearest(gdA, gdB):\n",
2022-04-20 13:03:38 +02:00
"\n",
2022-04-26 14:07:35 +02:00
" nA = np.array(list(gdA.geometry.apply(lambda x: (x.x, x.y))))\n",
" nB = np.array(list(gdB.geometry.apply(lambda x: (x.x, x.y))))\n",
" btree = cKDTree(nB)\n",
" dist, idx = btree.query(nA, k=1)\n",
" gdB_nearest = gdB.iloc[idx].drop(columns=\"geometry\").reset_index(drop=True)\n",
" gdf = pd.concat(\n",
" [\n",
" gdA.reset_index(drop=True),\n",
" gdB_nearest,\n",
" pd.Series(dist, name='dist')\n",
" ], \n",
" axis=1)\n",
"\n",
2022-04-26 14:07:35 +02:00
" return gdf\n",
"\n",
2022-04-26 14:07:35 +02:00
"#error bar is +- sqrt(250²*2)m ≈ +-353.553390593m\n",
"error = np.sqrt(250**2 + 250**2)\n",
2022-05-03 13:06:50 +02:00
"df_nearest = ckdnearest(nl_map_dst_points.to_crs(epsg=28992), gdf_wims_dedupe.to_crs(epsg=28992))\n",
2022-04-26 14:07:35 +02:00
"df_nearest.head()\n",
"\n"
]
},
2022-04-14 15:43:51 +02:00
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 26,
2022-04-14 15:43:51 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
2022-04-26 14:07:35 +02:00
"Text(0, 0.5, 'Bevolking (Millioenen)')"
2022-04-14 15:43:51 +02:00
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 26,
2022-04-14 15:43:51 +02:00
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
2022-05-03 13:06:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAwsAAALiCAYAAACWmkpEAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAlqElEQVR4nO3df5Dt913f99fbujYG/zg0saBBsizZVwh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AAAENiAQAAGBILAADAkFgAAACGxAIAADAkFgAAgCGxAAAADIkFAABgSCwAAABDYgEAABgSCwAAwJBYAAAAhsQCAAAwJBYAAIAhsQAAAAyJBQAAYEgsAAAAQ2IBAAAYEgsAAMCQWAAAAIbEAgAAMCQWAACAoUMTC1X15VX1a1X196vqy+eeBwAALnSTxkJVvaWqHq2q+05bv6aqHqyqh6rqxHK5k/zHJM9McmrKuQAAgINNfWTh5iTX7F2oqouSvDHJK5JcneSGqro6ya919yuSfF+SH5x4LgAA4ACTxkJ3vyfJh05bfkmSh7r74e7+WJJbk1zX3Z9cvv7HST5tyrkAAICDHZvhd16S5AN7tk8leWlVfX2Sr03ymUl+4kxvrqqtJFtJctlll003JQAAXODmiIUarHV3357k9oPe3N0nk5xMko2NjT7HswEAAEtz3A3pVJLn79m+NMkHZ5gDAADYxxyx8L4kV1bVFVX1jCTXJ7ljhjkAAIB9TH3r1FuSvDfJVVV1qqpu7O7Hk7w2yd1JHkhyW3ffP+UcAADAkzfpNQvdfcM
2022-04-14 15:43:51 +02:00
"text/plain": [
2022-04-26 14:07:35 +02:00
"<Figure size 936x936 with 1 Axes>"
2022-04-14 15:43:51 +02:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
2022-04-26 14:07:35 +02:00
"df_nearest['dist'].plot(kind=\"hist\", weights=df_nearest['INWONER'], figsize=(13,13), density=False, log=True).set_ylabel('Bevolking (Millioenen)')"
2022-04-14 15:43:51 +02:00
]
},
{
2022-04-26 14:07:35 +02:00
"cell_type": "markdown",
2022-04-14 15:43:51 +02:00
"metadata": {},
"source": [
2022-04-26 14:07:35 +02:00
"Het was mooier geweest als we het konden filteren op alleen stemgerechtigden en niet op de gehele populatiedichtheid, maar het CBS geeft geen data vrij die daarbij helpt. Er is een categorie voor 0-14 jaar oude mensen, maar niet alle minderjarigen of niet stemgerechtigde. Het moet dus maar met totale bevolkingsdichtheid om een idee te krijgen."
2022-04-14 15:43:51 +02:00
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 27,
2022-04-14 15:43:51 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>c28992r500</th>\n",
" <th>INWONER</th>\n",
" <th>geometry</th>\n",
2022-04-14 15:43:51 +02:00
" <th>savedindex</th>\n",
2022-04-26 14:07:35 +02:00
" <th>_id</th>\n",
" <th>Gemeente</th>\n",
" <th>CBS gemeentecode</th>\n",
" <th>Nummer stembureau</th>\n",
" <th>Naam stembureau</th>\n",
" <th>Gebruiksdoel van het gebouw</th>\n",
" <th>...</th>\n",
" <th>Gehandicaptentoilet</th>\n",
" <th>Kieskring ID</th>\n",
" <th>Hoofdstembureau</th>\n",
" <th>Tellocatie</th>\n",
" <th>Contactgegevens gemeente</th>\n",
" <th>Verkiezingswebsite gemeente</th>\n",
" <th>Verkiezingen</th>\n",
" <th>ID</th>\n",
" <th>UUID</th>\n",
" <th>dist</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>E2270N6190</td>\n",
" <td>0</td>\n",
" <td>POINT (227250.000 619250.000)</td>\n",
" <td>2</td>\n",
" <td>31030</td>\n",
" <td>Het Hogeland</td>\n",
" <td>GM1966</td>\n",
" <td>1</td>\n",
" <td>Dorpshuis Pieterburen</td>\n",
" <td>bijeenkomstfunctie,logiesfunctie</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>Het Hogeland</td>\n",
" <td>Het Hogeland</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@hethogeland.nl</td>\n",
" <td>https://hethogeland.nl/bestuur-en-organisatie/...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM1966stembureaus20220316009</td>\n",
" <td>6df04b8dd4be4aa3b4a03f221ab5ad17</td>\n",
" <td>17236.920436</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>E2275N6190</td>\n",
" <td>0</td>\n",
" <td>POINT (227750.000 619250.000)</td>\n",
" <td>3</td>\n",
" <td>31030</td>\n",
" <td>Het Hogeland</td>\n",
" <td>GM1966</td>\n",
" <td>1</td>\n",
" <td>Dorpshuis Pieterburen</td>\n",
" <td>bijeenkomstfunctie,logiesfunctie</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>Het Hogeland</td>\n",
" <td>Het Hogeland</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@hethogeland.nl</td>\n",
" <td>https://hethogeland.nl/bestuur-en-organisatie/...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM1966stembureaus20220316009</td>\n",
" <td>6df04b8dd4be4aa3b4a03f221ab5ad17</td>\n",
" <td>17280.014918</td>\n",
" </tr>\n",
" <tr>\n",
2022-04-14 15:43:51 +02:00
" <th>2</th>\n",
" <td>E2280N6190</td>\n",
2022-04-26 14:07:35 +02:00
" <td>0</td>\n",
2022-04-14 15:43:51 +02:00
" <td>POINT (228250.000 619250.000)</td>\n",
" <td>4</td>\n",
2022-04-26 14:07:35 +02:00
" <td>31030</td>\n",
" <td>Het Hogeland</td>\n",
" <td>GM1966</td>\n",
" <td>1</td>\n",
" <td>Dorpshuis Pieterburen</td>\n",
" <td>bijeenkomstfunctie,logiesfunctie</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>Het Hogeland</td>\n",
" <td>Het Hogeland</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@hethogeland.nl</td>\n",
" <td>https://hethogeland.nl/bestuur-en-organisatie/...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM1966stembureaus20220316009</td>\n",
" <td>6df04b8dd4be4aa3b4a03f221ab5ad17</td>\n",
" <td>17337.427867</td>\n",
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>3</th>\n",
2022-04-14 15:43:51 +02:00
" <td>E2265N6185</td>\n",
2022-04-26 14:07:35 +02:00
" <td>0</td>\n",
2022-04-14 15:43:51 +02:00
" <td>POINT (226750.000 618750.000)</td>\n",
" <td>7</td>\n",
2022-04-26 14:07:35 +02:00
" <td>31030</td>\n",
" <td>Het Hogeland</td>\n",
" <td>GM1966</td>\n",
" <td>1</td>\n",
" <td>Dorpshuis Pieterburen</td>\n",
" <td>bijeenkomstfunctie,logiesfunctie</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>Het Hogeland</td>\n",
" <td>Het Hogeland</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@hethogeland.nl</td>\n",
" <td>https://hethogeland.nl/bestuur-en-organisatie/...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM1966stembureaus20220316009</td>\n",
" <td>6df04b8dd4be4aa3b4a03f221ab5ad17</td>\n",
" <td>16708.725120</td>\n",
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>4</th>\n",
2022-04-14 15:43:51 +02:00
" <td>E2270N6185</td>\n",
2022-04-26 14:07:35 +02:00
" <td>0</td>\n",
2022-04-14 15:43:51 +02:00
" <td>POINT (227250.000 618750.000)</td>\n",
" <td>8</td>\n",
2022-04-26 14:07:35 +02:00
" <td>31030</td>\n",
" <td>Het Hogeland</td>\n",
" <td>GM1966</td>\n",
" <td>1</td>\n",
" <td>Dorpshuis Pieterburen</td>\n",
" <td>bijeenkomstfunctie,logiesfunctie</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>Het Hogeland</td>\n",
" <td>Het Hogeland</td>\n",
" <td>NaN</td>\n",
" <td>verkiezingen@hethogeland.nl</td>\n",
" <td>https://hethogeland.nl/bestuur-en-organisatie/...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM1966stembureaus20220316009</td>\n",
" <td>6df04b8dd4be4aa3b4a03f221ab5ad17</td>\n",
" <td>16738.249149</td>\n",
" </tr>\n",
2022-04-14 15:43:51 +02:00
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>139997</th>\n",
2022-04-14 15:43:51 +02:00
" <td>E1990N3070</td>\n",
2022-04-26 14:07:35 +02:00
" <td>0</td>\n",
2022-04-14 15:43:51 +02:00
" <td>POINT (199250.000 307250.000)</td>\n",
" <td>151102</td>\n",
2022-05-03 13:06:50 +02:00
" <td>4103</td>\n",
2022-04-26 14:07:35 +02:00
" <td>Vaals</td>\n",
" <td>GM0981</td>\n",
2022-05-03 13:06:50 +02:00
" <td>3</td>\n",
" <td>Auw Sjoel</td>\n",
" <td>bijeenkomstfunctie</td>\n",
2022-04-26 14:07:35 +02:00
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>Vaals</td>\n",
" <td>Vaals</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>Team verkiezingen, verkiezingen2022@vaals.nl</td>\n",
" <td>http://www.vaals.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0981stembureaus20220316009</td>\n",
2022-05-03 13:06:50 +02:00
" <td>3dfcfccd163145698a33b19623c5c3f3</td>\n",
" <td>2010.126740</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>139998</th>\n",
2022-04-14 15:43:51 +02:00
" <td>E1995N3070</td>\n",
2022-04-26 14:07:35 +02:00
" <td>0</td>\n",
2022-04-14 15:43:51 +02:00
" <td>POINT (199750.000 307250.000)</td>\n",
" <td>151103</td>\n",
2022-05-03 13:06:50 +02:00
" <td>4103</td>\n",
2022-04-26 14:07:35 +02:00
" <td>Vaals</td>\n",
" <td>GM0981</td>\n",
2022-05-03 13:06:50 +02:00
" <td>3</td>\n",
" <td>Auw Sjoel</td>\n",
" <td>bijeenkomstfunctie</td>\n",
2022-04-26 14:07:35 +02:00
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>Vaals</td>\n",
" <td>Vaals</td>\n",
2022-05-03 13:06:50 +02:00
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>Team verkiezingen, verkiezingen2022@vaals.nl</td>\n",
" <td>http://www.vaals.nl/verkiezingen</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM0981stembureaus20220316009</td>\n",
2022-05-03 13:06:50 +02:00
" <td>3dfcfccd163145698a33b19623c5c3f3</td>\n",
" <td>1949.951758</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>139999</th>\n",
2022-04-14 15:43:51 +02:00
" <td>E1910N3065</td>\n",
2022-04-26 14:07:35 +02:00
" <td>0</td>\n",
2022-04-14 15:43:51 +02:00
" <td>POINT (191250.000 306750.000)</td>\n",
" <td>151105</td>\n",
2022-04-26 14:07:35 +02:00
" <td>29739</td>\n",
" <td>Gulpen-Wittem</td>\n",
" <td>GM1729</td>\n",
" <td>7</td>\n",
" <td>Gemeenschapshuis Patronaat</td>\n",
" <td>woonfunctie</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>Gulpen-Wittem</td>\n",
" <td>Gulpen-Wittem</td>\n",
" <td>NaN</td>\n",
" <td>info@gulpen-wittem.nl 14 043</td>\n",
" <td>https://www.gulpen-wittem.nl/onderwerpen/verki...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM1729stembureaus20220316009</td>\n",
" <td>feb9d0a67a2f460f906d0d21e87bf690</td>\n",
" <td>2880.233287</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>140000</th>\n",
2022-04-14 15:43:51 +02:00
" <td>E1920N3065</td>\n",
" <td>20</td>\n",
" <td>POINT (192250.000 306750.000)</td>\n",
" <td>151106</td>\n",
2022-04-26 14:07:35 +02:00
" <td>29739</td>\n",
" <td>Gulpen-Wittem</td>\n",
" <td>GM1729</td>\n",
" <td>7</td>\n",
" <td>Gemeenschapshuis Patronaat</td>\n",
" <td>woonfunctie</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>Gulpen-Wittem</td>\n",
" <td>Gulpen-Wittem</td>\n",
" <td>NaN</td>\n",
" <td>info@gulpen-wittem.nl 14 043</td>\n",
" <td>https://www.gulpen-wittem.nl/onderwerpen/verki...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM1729stembureaus20220316009</td>\n",
" <td>feb9d0a67a2f460f906d0d21e87bf690</td>\n",
" <td>2746.345509</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>140001</th>\n",
2022-04-14 15:43:51 +02:00
" <td>E1925N3065</td>\n",
2022-04-26 14:07:35 +02:00
" <td>0</td>\n",
2022-04-14 15:43:51 +02:00
" <td>POINT (192750.000 306750.000)</td>\n",
" <td>151107</td>\n",
2022-04-26 14:07:35 +02:00
" <td>29739</td>\n",
" <td>Gulpen-Wittem</td>\n",
" <td>GM1729</td>\n",
" <td>7</td>\n",
" <td>Gemeenschapshuis Patronaat</td>\n",
" <td>woonfunctie</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>Gulpen-Wittem</td>\n",
" <td>Gulpen-Wittem</td>\n",
" <td>NaN</td>\n",
" <td>info@gulpen-wittem.nl 14 043</td>\n",
" <td>https://www.gulpen-wittem.nl/onderwerpen/verki...</td>\n",
" <td>NaN</td>\n",
" <td>NLODSGM1729stembureaus20220316009</td>\n",
" <td>feb9d0a67a2f460f906d0d21e87bf690</td>\n",
" <td>2813.494018</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" </tbody>\n",
"</table>\n",
2022-04-26 14:07:35 +02:00
"<p>140002 rows × 44 columns</p>\n",
2022-04-14 15:43:51 +02:00
"</div>"
],
"text/plain": [
2022-04-26 14:07:35 +02:00
" c28992r500 INWONER geometry savedindex _id \\\n",
"0 E2270N6190 0 POINT (227250.000 619250.000) 2 31030 \n",
"1 E2275N6190 0 POINT (227750.000 619250.000) 3 31030 \n",
"2 E2280N6190 0 POINT (228250.000 619250.000) 4 31030 \n",
"3 E2265N6185 0 POINT (226750.000 618750.000) 7 31030 \n",
"4 E2270N6185 0 POINT (227250.000 618750.000) 8 31030 \n",
"... ... ... ... ... ... \n",
2022-05-03 13:06:50 +02:00
"139997 E1990N3070 0 POINT (199250.000 307250.000) 151102 4103 \n",
"139998 E1995N3070 0 POINT (199750.000 307250.000) 151103 4103 \n",
2022-04-26 14:07:35 +02:00
"139999 E1910N3065 0 POINT (191250.000 306750.000) 151105 29739 \n",
"140000 E1920N3065 20 POINT (192250.000 306750.000) 151106 29739 \n",
"140001 E1925N3065 0 POINT (192750.000 306750.000) 151107 29739 \n",
"\n",
" Gemeente CBS gemeentecode Nummer stembureau \\\n",
"0 Het Hogeland GM1966 1 \n",
"1 Het Hogeland GM1966 1 \n",
"2 Het Hogeland GM1966 1 \n",
"3 Het Hogeland GM1966 1 \n",
"4 Het Hogeland GM1966 1 \n",
"... ... ... ... \n",
2022-05-03 13:06:50 +02:00
"139997 Vaals GM0981 3 \n",
"139998 Vaals GM0981 3 \n",
2022-04-26 14:07:35 +02:00
"139999 Gulpen-Wittem GM1729 7 \n",
"140000 Gulpen-Wittem GM1729 7 \n",
"140001 Gulpen-Wittem GM1729 7 \n",
"\n",
" Naam stembureau Gebruiksdoel van het gebouw ... \\\n",
"0 Dorpshuis Pieterburen bijeenkomstfunctie,logiesfunctie ... \n",
"1 Dorpshuis Pieterburen bijeenkomstfunctie,logiesfunctie ... \n",
"2 Dorpshuis Pieterburen bijeenkomstfunctie,logiesfunctie ... \n",
"3 Dorpshuis Pieterburen bijeenkomstfunctie,logiesfunctie ... \n",
"4 Dorpshuis Pieterburen bijeenkomstfunctie,logiesfunctie ... \n",
"... ... ... ... \n",
2022-05-03 13:06:50 +02:00
"139997 Auw Sjoel bijeenkomstfunctie ... \n",
"139998 Auw Sjoel bijeenkomstfunctie ... \n",
2022-04-26 14:07:35 +02:00
"139999 Gemeenschapshuis Patronaat woonfunctie ... \n",
"140000 Gemeenschapshuis Patronaat woonfunctie ... \n",
"140001 Gemeenschapshuis Patronaat woonfunctie ... \n",
"\n",
" Gehandicaptentoilet Kieskring ID Hoofdstembureau Tellocatie \\\n",
"0 NaN Het Hogeland Het Hogeland NaN \n",
"1 NaN Het Hogeland Het Hogeland NaN \n",
"2 NaN Het Hogeland Het Hogeland NaN \n",
"3 NaN Het Hogeland Het Hogeland NaN \n",
"4 NaN Het Hogeland Het Hogeland NaN \n",
"... ... ... ... ... \n",
2022-05-03 13:06:50 +02:00
"139997 NaN Vaals Vaals NaN \n",
"139998 NaN Vaals Vaals NaN \n",
2022-04-26 14:07:35 +02:00
"139999 NaN Gulpen-Wittem Gulpen-Wittem NaN \n",
"140000 NaN Gulpen-Wittem Gulpen-Wittem NaN \n",
"140001 NaN Gulpen-Wittem Gulpen-Wittem NaN \n",
"\n",
" Contactgegevens gemeente \\\n",
"0 verkiezingen@hethogeland.nl \n",
"1 verkiezingen@hethogeland.nl \n",
"2 verkiezingen@hethogeland.nl \n",
"3 verkiezingen@hethogeland.nl \n",
"4 verkiezingen@hethogeland.nl \n",
"... ... \n",
"139997 Team verkiezingen, verkiezingen2022@vaals.nl \n",
"139998 Team verkiezingen, verkiezingen2022@vaals.nl \n",
"139999 info@gulpen-wittem.nl 14 043 \n",
"140000 info@gulpen-wittem.nl 14 043 \n",
"140001 info@gulpen-wittem.nl 14 043 \n",
2022-04-14 15:43:51 +02:00
"\n",
2022-04-26 14:07:35 +02:00
" Verkiezingswebsite gemeente Verkiezingen \\\n",
"0 https://hethogeland.nl/bestuur-en-organisatie/... NaN \n",
"1 https://hethogeland.nl/bestuur-en-organisatie/... NaN \n",
"2 https://hethogeland.nl/bestuur-en-organisatie/... NaN \n",
"3 https://hethogeland.nl/bestuur-en-organisatie/... NaN \n",
"4 https://hethogeland.nl/bestuur-en-organisatie/... NaN \n",
"... ... ... \n",
"139997 http://www.vaals.nl/verkiezingen NaN \n",
"139998 http://www.vaals.nl/verkiezingen NaN \n",
"139999 https://www.gulpen-wittem.nl/onderwerpen/verki... NaN \n",
"140000 https://www.gulpen-wittem.nl/onderwerpen/verki... NaN \n",
"140001 https://www.gulpen-wittem.nl/onderwerpen/verki... NaN \n",
"\n",
" ID UUID \\\n",
"0 NLODSGM1966stembureaus20220316009 6df04b8dd4be4aa3b4a03f221ab5ad17 \n",
"1 NLODSGM1966stembureaus20220316009 6df04b8dd4be4aa3b4a03f221ab5ad17 \n",
"2 NLODSGM1966stembureaus20220316009 6df04b8dd4be4aa3b4a03f221ab5ad17 \n",
"3 NLODSGM1966stembureaus20220316009 6df04b8dd4be4aa3b4a03f221ab5ad17 \n",
"4 NLODSGM1966stembureaus20220316009 6df04b8dd4be4aa3b4a03f221ab5ad17 \n",
"... ... ... \n",
2022-05-03 13:06:50 +02:00
"139997 NLODSGM0981stembureaus20220316009 3dfcfccd163145698a33b19623c5c3f3 \n",
"139998 NLODSGM0981stembureaus20220316009 3dfcfccd163145698a33b19623c5c3f3 \n",
2022-04-26 14:07:35 +02:00
"139999 NLODSGM1729stembureaus20220316009 feb9d0a67a2f460f906d0d21e87bf690 \n",
"140000 NLODSGM1729stembureaus20220316009 feb9d0a67a2f460f906d0d21e87bf690 \n",
"140001 NLODSGM1729stembureaus20220316009 feb9d0a67a2f460f906d0d21e87bf690 \n",
"\n",
" dist \n",
"0 17236.920436 \n",
"1 17280.014918 \n",
"2 17337.427867 \n",
"3 16708.725120 \n",
"4 16738.249149 \n",
"... ... \n",
2022-05-03 13:06:50 +02:00
"139997 2010.126740 \n",
"139998 1949.951758 \n",
2022-04-26 14:07:35 +02:00
"139999 2880.233287 \n",
"140000 2746.345509 \n",
"140001 2813.494018 \n",
"\n",
"[140002 rows x 44 columns]"
2022-04-14 15:43:51 +02:00
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 27,
2022-04-14 15:43:51 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2022-04-26 14:07:35 +02:00
"nl_map_dst_zero_points[\"INWONER\"].mask(nl_map_dst_zero_points[\"INWONER\"] == -99997, 0, inplace=True)\n",
"nl_map_dst_zero_points.head()\n",
2022-05-03 13:06:50 +02:00
"df_nearest_zero = ckdnearest(nl_map_dst_zero_points.to_crs(epsg=28992), gdf_wims_dedupe.to_crs(epsg=28992))\n",
2022-04-26 14:07:35 +02:00
"df_nearest_zero[\"INWONER\"].dropna()\n",
"df_nearest_zero[\"dist\"].dropna()\n",
"df_nearest_zero"
2022-04-14 15:43:51 +02:00
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 28,
2022-04-26 14:07:35 +02:00
"metadata": {},
2022-04-14 15:43:51 +02:00
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
2022-04-20 13:03:38 +02:00
" <th>Gemeente</th>\n",
" <th>Naam stembureau</th>\n",
2022-04-14 15:43:51 +02:00
" <th>dist</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>47198</th>\n",
" <td>Ridderkerk</td>\n",
" <td>Gemeentehuis</td>\n",
" <td>3.835321</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>32760</th>\n",
" <td>Baarn</td>\n",
" <td>Dorpshuis de Furs</td>\n",
" <td>4.000517</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>5146</th>\n",
" <td>Groningen</td>\n",
" <td>Dorpshuis De Hoeksteen</td>\n",
" <td>5.577246</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>38896</th>\n",
" <td>Montfoort</td>\n",
" <td>Zalencentrum St. Joseph</td>\n",
" <td>5.703409</td>\n",
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>67384</th>\n",
" <td>Kerkrade</td>\n",
" <td>t Westhoes</td>\n",
" <td>7.252446</td>\n",
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>...</th>\n",
2022-04-14 15:43:51 +02:00
" <td>...</td>\n",
2022-04-26 14:07:35 +02:00
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>23387</th>\n",
" <td>Zeewolde</td>\n",
" <td>Het Kruispunt</td>\n",
" <td>8207.619943</td>\n",
2022-04-26 14:07:35 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>22440</th>\n",
" <td>Lelystad</td>\n",
" <td>Gymzaal De Borg</td>\n",
" <td>8402.730770</td>\n",
2022-04-26 14:07:35 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>22310</th>\n",
" <td>Lelystad</td>\n",
" <td>Voormalige Scholengemeenschap De Rietlanden</td>\n",
" <td>8540.805874</td>\n",
2022-04-26 14:07:35 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>22439</th>\n",
2022-04-26 14:07:35 +02:00
" <td>Lelystad</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Voormalige Scholengemeenschap De Rietlanden</td>\n",
" <td>9028.790070</td>\n",
2022-04-26 14:07:35 +02:00
" </tr>\n",
" <tr>\n",
" <th>22583</th>\n",
2022-05-03 13:06:50 +02:00
" <td>Zeewolde</td>\n",
" <td>Panta Rhei</td>\n",
" <td>9173.600947</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" </tbody>\n",
"</table>\n",
2022-04-26 14:07:35 +02:00
"<p>67995 rows × 3 columns</p>\n",
2022-04-14 15:43:51 +02:00
"</div>"
],
"text/plain": [
2022-05-03 13:06:50 +02:00
" Gemeente Naam stembureau dist\n",
"47198 Ridderkerk Gemeentehuis 3.835321\n",
"32760 Baarn Dorpshuis de Furs 4.000517\n",
"5146 Groningen Dorpshuis De Hoeksteen 5.577246\n",
"38896 Montfoort Zalencentrum St. Joseph 5.703409\n",
"67384 Kerkrade t Westhoes 7.252446\n",
"... ... ... ...\n",
"23387 Zeewolde Het Kruispunt 8207.619943\n",
"22440 Lelystad Gymzaal De Borg 8402.730770\n",
"22310 Lelystad Voormalige Scholengemeenschap De Rietlanden 8540.805874\n",
"22439 Lelystad Voormalige Scholengemeenschap De Rietlanden 9028.790070\n",
"22583 Zeewolde Panta Rhei 9173.600947\n",
2022-04-20 13:03:38 +02:00
"\n",
2022-04-26 14:07:35 +02:00
"[67995 rows x 3 columns]"
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 28,
2022-04-26 14:07:35 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_nearest.sort_values(by=['dist'], inplace=True)\n",
"df_nearest[['Gemeente', 'Naam stembureau', 'dist']]"
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 29,
2022-04-26 14:07:35 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:xlabel='Inwoners per 500m² (laagste is 5)', ylabel='Afstand tot stemlokaal (meter)'>"
2022-04-14 15:43:51 +02:00
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 29,
2022-04-14 15:43:51 +02:00
"metadata": {},
"output_type": "execute_result"
2022-04-26 14:07:35 +02:00
},
{
"data": {
2022-05-03 13:06:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAxIAAALwCAYAAAADP0P2AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAACtpElEQVR4nOz9e3xc1X3v/7/X3nORLPkWGQy2bC4RlGO7tgNODDHQYNKEBOPkHBOSA4SmDclpf7n0NAGbNHUI+NvTYpL0lEKTQ8mNljQxdhObS9JcTAJ2wIlIZMV2CKhcbNlcFdtYsjS3vX5/jEaey57RHmlG0oxez8fDtbVm75kl2Snrs9f6fD7GWisAAAAAKIcz3hMAAAAAUHsIJAAAAACUjUACAAAAQNkIJAAAAACUjUACAAAAQNkIJAAAAACULTTeE6iWWbNm2dNPP328pwEAAADUrCeffPI1a+1Jfq/VbSBx+umnq729fbynAQAAANQsY8wLxV7jaBMAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQQAAACAshFIAAAAACgbgQ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YHEGGl//vB4TwEAAACoGAKJCpvWGPEdv2/XC+RJAAAAoG4QSFTYwjnT5JrC8UjIVff
2022-04-26 14:07:35 +02:00
"text/plain": [
"<Figure size 936x936 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
2022-04-14 15:43:51 +02:00
}
],
"source": [
2022-04-26 14:07:35 +02:00
"df_nearest.plot.scatter(x = 'INWONER', y = 'dist', figsize=(13,13), xlabel=\"Inwoners per 500m² (laagste is 5)\", ylabel=\"Afstand tot stemlokaal (meter)\")"
2022-04-14 15:43:51 +02:00
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 30,
2022-04-14 15:43:51 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
2022-04-26 14:07:35 +02:00
"<AxesSubplot:xlabel='Inwoners per 500m² (inclusief lege (<5 inwoners) vierkanten)', ylabel='Afstand tot stemlokaal (meter)'>"
2022-04-14 15:43:51 +02:00
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 30,
2022-04-14 15:43:51 +02:00
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
2022-05-03 13:06:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAxgAAALwCAYAAAAUHdM/AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAACTfElEQVR4nOz9eZzcVZn3/7+vT23d6ax02JJO2MJiwiRRMgIGGQEHkNX5soyi4sy4zHiLy60COv4YBrl1BFxGBPFGdIQZXIDcyj4uLGIYiAZMYhJZmrCkEwykydZJp7bP+f1RVZ1aPlVdlVRVV1Vez8ejH+m+6lNVp6pbOVedc53LnHMCAAAAgHrwxnoAAAAAADoHCQYAAACAuiHBAAAAAFA3JBgAAAAA6oYEAwAAAEDdkGAAAAAAqJvwWA+g2aZOneoOPvjgsR4GAAAA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kiY6555wzjlJt0l6d959bs1+f5ekU3KrG61oeyKtSKhweJGQaXsiPUYjAgAAAOpvLGowLjGzFdktVFOysemS1uZdM5CNTc9+XxwvuI9zLiVpi6TeRg58T/REQ0qmC7dDJdNOPdFQmXsAAAAA7afZCcZNkg6TNF/Sq5K+no0HrTy4CvFK9ylhZh81s6VmtvT111+vacD1sn5LcEO9cnEAAACgHTU1wXDObXDOpZ1zvqTvSXpr9qYBSTPyLu2TtD4b7wuIF9zHzMKSJqnMlizn3M3OuQXOuQX77rtvvV5OTbYOp2qKAwAAAO2oqQlGtqYi528k5U6YukfSe7InQx2iTDH375xzr0raZmbHZesrLpZ0d959Ppj9/nxJD2frNFrSxO5wTXE
2022-04-14 15:43:51 +02:00
"text/plain": [
"<Figure size 936x936 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
2022-04-26 14:07:35 +02:00
"df_nearest_zero.plot.scatter(x = 'INWONER', y = 'dist', figsize=(13,13), xlabel=\"Inwoners per 500m² (inclusief lege (<5 inwoners) vierkanten)\", ylabel=\"Afstand tot stemlokaal (meter)\")"
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 31,
2022-04-26 14:07:35 +02:00
"metadata": {},
"outputs": [],
"source": [
"FIGSIZE = (13, 13)\n",
"def plot_bargraph_with_groupings(df, groupby, colourby, title, xlabel, ylabel):\n",
"\n",
" import matplotlib.patches as mpatches\n",
"\n",
"\n",
" # Makes the bargraph.\n",
" ax = df[groupby].value_counts().plot(kind='bar',\n",
" figsize=FIGSIZE,\n",
" title=title)\n",
" \n",
"\n",
" # display the graph.\n",
" \n",
" ax.set_xlabel(xlabel)\n",
" ax.set_ylabel(ylabel)"
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 32,
2022-04-26 14:07:35 +02:00
"metadata": {
2022-05-04 16:38:33 +02:00
"scrolled": false
2022-04-26 14:07:35 +02:00
},
"outputs": [
{
"data": {
2022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AAAAAqEZAAQAAAKAaAQUAAACAagQUAAAAAKoRUAAAAACoRkABAAAAoBoBBQAAAIBqBBQAAAAAqhFQAAAAAKhGQAEAAACgGgEFAAAAgGoEFAAAAACqEVAAAAAAqEZAAQAAAKAaAQUAAACAagQUAAAAAKoRUAAAAACoRkABAAAAoBoBBQAAAIBqBBQAAAAAqhFQAAAAAKhGQAEAAACg2pgFFGa2tJldYmaXm9lVZnZYTD/UzP5hZrPia7fGdw4xs+vN7Foze2kjfSszmx0/O9rMbKzKDQAAAGBwk8Zw3g9LepG7/8fMlpB0vpmdGT/7qrt/uTmxmW0saR9Jm0haU9IfzOxp7j5P0rGS9pf0Z0m/kbSLpDMFAAAAYKEaszMUHvwnvl0ivrzwlT0l/cTdH3b3GyVdL2lbM1tD0mR3v8jdXdKJkvYaq3IDAAAAGNyY3kNhZhPNbJakOyWd5e4Xx4/ea2ZXmNn3zGzlmLaWpFsaX781pq0V/2+nAwAAAFjIxjSgcPd57r65pLUVzjZsqnD50oaSNpd0u6SvxMlT90V4IX0EM9vfzGaY2Yy77rrrCZYeAAAAQD9jeQ/FfO5+n5n9SdIuzXsnzOw7kn4d394qaZ3G19aWdFtMXzuRnsrnOEnHSdLWW2/t0w4+Y/5nc77wsidcDwAAAADDjeVTnqaa2Urx/2UkvVjSX+M9ET2vkHRl/P90SfuY2VJmtr6k6ZIucffbJc01s+3i053eLOm0sSo3AAAAgMGN5RmKNSSdYGYTFQKXk93912Z2kpltrnDZ0hxJ75Qkd7/KzE6WdLWkxyQdEJ/wJEnvlnS8pGUUnu7EE54AAACARcCYBRTufoWkLRLpbyp85wh
2022-04-26 14:07:35 +02:00
"text/plain": [
"<Figure size 936x936 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
2022-05-03 13:06:50 +02:00
"plot_bargraph_with_groupings(gdf_wims_dedupe, 'Gebruiksdoel van het gebouw', 'Gemeente', 'Gebruiksdoelen van Stemlokalen', 'Gebruiksdoel', 'Hoeveelheid Stemlokalen')"
2022-04-14 15:43:51 +02:00
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
2022-04-26 14:07:35 +02:00
"Dit is onbruikbaar, de categorieën moeten elk één balkje zijn, niet zoals dit."
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 33,
2022-04-26 14:07:35 +02:00
"metadata": {},
"outputs": [],
"source": [
2022-05-03 13:06:50 +02:00
"gdf_wims_exploded = gdf_wims_dedupe.drop('Gebruiksdoel van het gebouw', axis=1).join(\n",
" gdf_wims_dedupe['Gebruiksdoel van het gebouw'].str.split(',', expand=True).stack().reset_index(level=1,drop=True).rename('Gebruiksdoel van het gebouw'))"
2022-04-26 14:07:35 +02:00
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 34,
2022-04-26 14:07:35 +02:00
"metadata": {},
"outputs": [
{
"data": {
2022-05-03 13:06:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAxIAAANtCAYAAAAEsE3fAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABVm0lEQVR4nO3dd5h1Z1k37N+VBEgoISBBeAkhwBtAWhBCR1SKIL0XQaqAgFQVAUUERbGh4idVhVACBpEuNdJCTyCh84IhFIl0SAiQkHB9f6w1yc6TeZ5nVpiZNZN9nscxx+y1dplr7pm99/rtdZfq7gAAAEyxx9wFAAAA248gAQAATCZIAAAAkwkSAADAZIIEAAAwmSABAABMJkgATFRVv1JVX13nx/xBVV1hvPziqvqzdXjMrqr/u1UeZxlN+V85t3/3qnpAVR01vTqAn40gASylqrpXVX2oqk6pqm+Mlx9RVTVHPd194e4+fo6ffV5XVQdU1aur6ltV9f2q+kRVPWC87qAxKO01c5kA244gASydqvrdJP+Q5K+TXCrJzyf57SQ3TnL+Dfh5e673YzLJS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JMJEgAAwGSCBAAAMJkgAQAATCZIAAAAkwkSAADAZIIEAAAwmSABAABMJkgAAACTCRIAAMBkggQAADCZIAEAAEwmSAAAAJMJEgAAwGSCBAAAMJkgAQAATCZIAAAAkwkSAADAZIIEAAAwmSABAABMJkgAAACTCRIAAMBkggQAADCZIAEAAEwmSAAAAJNteJCoqj2r6mNV9cZx++JV9faq+vz4/WILt31SVX2hqj5XVbda2H+dqvrEeN2zq6o2um4
2022-04-26 14:07:35 +02:00
"text/plain": [
"<Figure size 936x936 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"plot_bargraph_with_groupings(gdf_wims_exploded, 'Gebruiksdoel van het gebouw', 'Gemeente', 'Gebruiksdoelen van Stemlokalen', 'Gebruiksdoel', 'Hoeveelheid Stemlokalen')"
2022-04-14 15:43:51 +02:00
]
},
{
"cell_type": "code",
2022-05-03 13:06:50 +02:00
"execution_count": 35,
2022-04-14 15:43:51 +02:00
"metadata": {},
2022-04-26 14:07:35 +02:00
"outputs": [
{
"data": {
"text/plain": [
"Amsterdam 456\n",
"Rotterdam 398\n",
"'s-Gravenhage 271\n",
"Utrecht 162\n",
"Breda 90\n",
"Eindhoven 86\n",
"Groningen 85\n",
"Apeldoorn 71\n",
"Enschede 69\n",
"Alphen aan den Rijn 66\n",
"Leiden 52\n",
"Deventer 51\n",
"West Betuwe 37\n",
"Waadhoeke 33\n",
"Amsterdam 382\n",
"Rotterdam 375\n",
"'s-Gravenhage 258\n",
"Utrecht 161\n",
"Groningen 122\n",
"Breda 89\n",
"Haarlemmermeer 79\n",
"Nijmegen 74\n",
"'s-Hertogenbosch 40\n",
"Het Hogeland 39\n",
"Zoetermeer 38\n",
"Staphorst 2\n",
"Name: Gemeente, dtype: int64"
]
},
2022-05-03 13:06:50 +02:00
"execution_count": 35,
2022-04-26 14:07:35 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2022-05-03 13:06:50 +02:00
"\n",
2022-04-26 14:07:35 +02:00
"wims_count = gdf_wims_dedupe['Gemeente'].value_counts()\n",
"\n",
"\n",
2022-05-03 13:06:50 +02:00
"geojson_rename = df_geojson_dedupe.rename(columns = {'electionName': 'Gemeente'})\n",
2022-04-26 14:07:35 +02:00
"geojson_count = geojson_rename['Gemeente'].str.slice(13, -5).value_counts()\n",
"\n",
"pd.concat([geojson_count, wims_count]).drop_duplicates(keep=False)\n"
]
},
{
"cell_type": "code",
2022-05-04 13:24:29 +02:00
"execution_count": 36,
2022-04-26 14:07:35 +02:00
"metadata": {},
2022-04-14 15:43:51 +02:00
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
2022-04-26 14:07:35 +02:00
" <th>Openingstijden 14-03-2022</th>\n",
" <th>Openingstijden 15-03-2022</th>\n",
" <th>Openingstijden 16-03-2022</th>\n",
2022-04-20 13:03:38 +02:00
" <th>UUID</th>\n",
2022-05-03 13:06:50 +02:00
" <th>Gemeente</th>\n",
" <th>CBS gemeentecode</th>\n",
2022-04-26 14:07:35 +02:00
" <th>Openingstijden 14-03-2022 van</th>\n",
" <th>Openingstijden 14-03-2022 tot</th>\n",
" <th>Openingstijden 15-03-2022 van</th>\n",
" <th>Openingstijden 15-03-2022 tot</th>\n",
" <th>Openingstijden 16-03-2022 van</th>\n",
" <th>Openingstijden 16-03-2022 tot</th>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T10:00:00 tot 2022-03-16T13:00:00</td>\n",
" <td>3a612b2151fa4ab491b9e331355e6258</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>2022-03-16T10:00:00</td>\n",
" <td>2022-03-16T13:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
" <td>9a01d765af0a467ea37f08d92db114ba</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>2022-03-16T07:30:00</td>\n",
" <td>2022-03-16T21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
" <td>fc5869d33fbc4b06be659149fa615f4c</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00</td>\n",
" <td>2022-03-16T21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>3</th>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
" <td>4427cc0b39e040ba8f75c333f19d66f0</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>2022-03-16T07:30:00</td>\n",
" <td>2022-03-16T21:00:00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>2022-03-14T07:30:00 tot 2022-03-14T21:00:00</td>\n",
" <td>2022-03-15T07:30:00 tot 2022-03-15T21:00:00</td>\n",
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
" <td>a893bb9add324ce29769f1c39afcc48d</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-14T07:30:00</td>\n",
" <td>2022-03-14T21:00:00</td>\n",
" <td>2022-03-15T07:30:00</td>\n",
" <td>2022-03-15T21:00:00</td>\n",
" <td>2022-03-16T07:30:00</td>\n",
" <td>2022-03-16T21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
2022-05-03 13:06:50 +02:00
" <td>...</td>\n",
" <td>...</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9270</th>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
2022-05-03 13:06:50 +02:00
" <td>f744546cd6894e5e9a4db4bbfd81b4ee</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>2022-03-16T07:30:00</td>\n",
" <td>2022-03-16T21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9271</th>\n",
" <td>2022-03-14T07:30:00 tot 2022-03-14T21:00:00</td>\n",
" <td>2022-03-15T07:30:00 tot 2022-03-15T21:00:00</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
2022-05-03 13:06:50 +02:00
" <td>1270081b1dc74cd7bea0f45973650408</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>2022-03-14T07:30:00</td>\n",
" <td>2022-03-14T21:00:00</td>\n",
" <td>2022-03-15T07:30:00</td>\n",
" <td>2022-03-15T21:00:00</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00</td>\n",
" <td>2022-03-16T21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9272</th>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>2022-03-15T07:30:00 tot 2022-03-15T21:00:00</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
2022-05-03 13:06:50 +02:00
" <td>447c7742604345139e41def4cf1e4d3c</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>2022-03-15T07:30:00</td>\n",
" <td>2022-03-15T21:00:00</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00</td>\n",
" <td>2022-03-16T21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9273</th>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
2022-05-03 13:06:50 +02:00
" <td>049cfd258c174bc49abf17883396d083</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>2022-03-16T07:30:00</td>\n",
" <td>2022-03-16T21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9274</th>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
2022-05-03 13:06:50 +02:00
" <td>1e8cbe96e72c4c6ba6303f47bec8cdb5</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>2022-03-16T07:30:00</td>\n",
" <td>2022-03-16T21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" </tbody>\n",
"</table>\n",
2022-05-03 13:06:50 +02:00
"<p>8089 rows × 12 columns</p>\n",
2022-04-14 15:43:51 +02:00
"</div>"
],
"text/plain": [
2022-04-26 14:07:35 +02:00
" Openingstijden 14-03-2022 \\\n",
"0 NaN \n",
"1 NaN \n",
"2 NaN \n",
"3 NaN \n",
"4 2022-03-14T07:30:00 tot 2022-03-14T21:00:00 \n",
"... ... \n",
2022-05-03 13:06:50 +02:00
"9270 NaN \n",
"9271 2022-03-14T07:30:00 tot 2022-03-14T21:00:00 \n",
"9272 NaN \n",
"9273 NaN \n",
"9274 NaN \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-04-26 14:07:35 +02:00
" Openingstijden 15-03-2022 \\\n",
"0 NaN \n",
"1 NaN \n",
"2 NaN \n",
"3 NaN \n",
"4 2022-03-15T07:30:00 tot 2022-03-15T21:00:00 \n",
"... ... \n",
2022-05-03 13:06:50 +02:00
"9270 NaN \n",
"9271 2022-03-15T07:30:00 tot 2022-03-15T21:00:00 \n",
"9272 2022-03-15T07:30:00 tot 2022-03-15T21:00:00 \n",
"9273 NaN \n",
"9274 NaN \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-04-26 14:07:35 +02:00
" Openingstijden 16-03-2022 \\\n",
"0 2022-03-16T10:00:00 tot 2022-03-16T13:00:00 \n",
"1 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"2 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"3 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"4 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"... ... \n",
2022-05-03 13:06:50 +02:00
"9270 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"9271 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"9272 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"9273 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"9274 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" UUID Gemeente CBS gemeentecode \\\n",
"0 3a612b2151fa4ab491b9e331355e6258 Valkenswaard GM0858 \n",
"1 9a01d765af0a467ea37f08d92db114ba Valkenswaard GM0858 \n",
"2 fc5869d33fbc4b06be659149fa615f4c Valkenswaard GM0858 \n",
"3 4427cc0b39e040ba8f75c333f19d66f0 Valkenswaard GM0858 \n",
"4 a893bb9add324ce29769f1c39afcc48d Valkenswaard GM0858 \n",
"... ... ... ... \n",
"9270 f744546cd6894e5e9a4db4bbfd81b4ee Gennep GM0907 \n",
"9271 1270081b1dc74cd7bea0f45973650408 Gennep GM0907 \n",
"9272 447c7742604345139e41def4cf1e4d3c Gennep GM0907 \n",
"9273 049cfd258c174bc49abf17883396d083 Gennep GM0907 \n",
"9274 1e8cbe96e72c4c6ba6303f47bec8cdb5 Gennep GM0907 \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Openingstijden 14-03-2022 van Openingstijden 14-03-2022 tot \\\n",
2022-04-26 14:07:35 +02:00
"0 NaN NaN \n",
"1 NaN NaN \n",
"2 NaN NaN \n",
"3 NaN NaN \n",
2022-05-03 13:06:50 +02:00
"4 2022-03-14T07:30:00 2022-03-14T21:00:00 \n",
2022-04-26 14:07:35 +02:00
"... ... ... \n",
2022-05-03 13:06:50 +02:00
"9270 NaN NaN \n",
"9271 2022-03-14T07:30:00 2022-03-14T21:00:00 \n",
"9272 NaN NaN \n",
"9273 NaN NaN \n",
"9274 NaN NaN \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Openingstijden 15-03-2022 van Openingstijden 15-03-2022 tot \\\n",
"0 NaN NaN \n",
"1 NaN NaN \n",
"2 NaN NaN \n",
"3 NaN NaN \n",
"4 2022-03-15T07:30:00 2022-03-15T21:00:00 \n",
2022-04-26 14:07:35 +02:00
"... ... ... \n",
2022-05-03 13:06:50 +02:00
"9270 NaN NaN \n",
"9271 2022-03-15T07:30:00 2022-03-15T21:00:00 \n",
"9272 2022-03-15T07:30:00 2022-03-15T21:00:00 \n",
"9273 NaN NaN \n",
"9274 NaN NaN \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Openingstijden 16-03-2022 van Openingstijden 16-03-2022 tot \n",
"0 2022-03-16T10:00:00 2022-03-16T13:00:00 \n",
"1 2022-03-16T07:30:00 2022-03-16T21:00:00 \n",
"2 2022-03-16T07:30:00 2022-03-16T21:00:00 \n",
"3 2022-03-16T07:30:00 2022-03-16T21:00:00 \n",
"4 2022-03-16T07:30:00 2022-03-16T21:00:00 \n",
"... ... ... \n",
"9270 2022-03-16T07:30:00 2022-03-16T21:00:00 \n",
"9271 2022-03-16T07:30:00 2022-03-16T21:00:00 \n",
"9272 2022-03-16T07:30:00 2022-03-16T21:00:00 \n",
"9273 2022-03-16T07:30:00 2022-03-16T21:00:00 \n",
"9274 2022-03-16T07:30:00 2022-03-16T21:00:00 \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
"[8089 rows x 12 columns]"
2022-04-14 15:43:51 +02:00
]
},
2022-05-04 13:24:29 +02:00
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2022-05-03 13:06:50 +02:00
"gdf_wims_times = gdf_wims_dedupe.loc[:, ('Openingstijden 14-03-2022','Openingstijden 15-03-2022','Openingstijden 16-03-2022', 'UUID', 'Gemeente', 'CBS gemeentecode')]\n",
2022-04-26 14:07:35 +02:00
"gdf_wims_split = gdf_wims_times\n",
"gdf_wims_split[['Openingstijden 14-03-2022 van', 'Openingstijden 14-03-2022 tot']] = gdf_wims_times['Openingstijden 14-03-2022'].str.split(' tot ',1 , expand=True)\n",
"gdf_wims_split[['Openingstijden 15-03-2022 van', 'Openingstijden 15-03-2022 tot']] = gdf_wims_split['Openingstijden 15-03-2022'].str.split(' tot ',1 , expand=True)\n",
"gdf_wims_split[['Openingstijden 16-03-2022 van', 'Openingstijden 16-03-2022 tot']] = gdf_wims_split['Openingstijden 16-03-2022'].str.split(' tot ',1 , expand=True)\n",
"\n",
"gdf_wims_split"
]
},
{
"cell_type": "code",
2022-05-04 13:24:29 +02:00
"execution_count": 37,
2022-04-14 15:43:51 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
2022-04-26 14:07:35 +02:00
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Openingstijden 14-03-2022</th>\n",
" <th>Openingstijden 15-03-2022</th>\n",
" <th>Openingstijden 16-03-2022</th>\n",
2022-04-20 13:03:38 +02:00
" <th>UUID</th>\n",
2022-05-03 13:06:50 +02:00
" <th>Gemeente</th>\n",
" <th>CBS gemeentecode</th>\n",
2022-04-26 14:07:35 +02:00
" <th>Openingstijden 14-03-2022 van</th>\n",
" <th>Openingstijden 14-03-2022 tot</th>\n",
" <th>Openingstijden 15-03-2022 van</th>\n",
" <th>Openingstijden 15-03-2022 tot</th>\n",
" <th>Openingstijden 16-03-2022 van</th>\n",
" <th>Openingstijden 16-03-2022 tot</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>0</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T10:00:00 tot 2022-03-16T13:00:00</td>\n",
" <td>3a612b2151fa4ab491b9e331355e6258</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>2022-03-16 10:00:00</td>\n",
" <td>2022-03-16 13:00:00</td>\n",
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>1</th>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
" <td>9a01d765af0a467ea37f08d92db114ba</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>2022-03-16 07:30:00</td>\n",
" <td>2022-03-16 21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>2</th>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
" <td>fc5869d33fbc4b06be659149fa615f4c</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>2022-03-16 07:30:00</td>\n",
" <td>2022-03-16 21:00:00</td>\n",
2022-04-20 13:03:38 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>3</th>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
" <td>4427cc0b39e040ba8f75c333f19d66f0</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>2022-03-16 07:30:00</td>\n",
" <td>2022-03-16 21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-04-26 14:07:35 +02:00
" <th>4</th>\n",
" <td>2022-03-14T07:30:00 tot 2022-03-14T21:00:00</td>\n",
" <td>2022-03-15T07:30:00 tot 2022-03-15T21:00:00</td>\n",
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
" <td>a893bb9add324ce29769f1c39afcc48d</td>\n",
2022-05-03 13:06:50 +02:00
" <td>Valkenswaard</td>\n",
" <td>GM0858</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-14 07:30:00</td>\n",
" <td>2022-03-14 21:00:00</td>\n",
" <td>2022-03-15 07:30:00</td>\n",
" <td>2022-03-15 21:00:00</td>\n",
" <td>2022-03-16 07:30:00</td>\n",
" <td>2022-03-16 21:00:00</td>\n",
" </tr>\n",
" <tr>\n",
2022-04-14 15:43:51 +02:00
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
2022-05-03 13:06:50 +02:00
" <td>...</td>\n",
" <td>...</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9270</th>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
2022-05-03 13:06:50 +02:00
" <td>f744546cd6894e5e9a4db4bbfd81b4ee</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>2022-03-16 07:30:00</td>\n",
" <td>2022-03-16 21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9271</th>\n",
" <td>2022-03-14T07:30:00 tot 2022-03-14T21:00:00</td>\n",
" <td>2022-03-15T07:30:00 tot 2022-03-15T21:00:00</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
2022-05-03 13:06:50 +02:00
" <td>1270081b1dc74cd7bea0f45973650408</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
" <td>2022-03-14 07:30:00</td>\n",
" <td>2022-03-14 21:00:00</td>\n",
" <td>2022-03-15 07:30:00</td>\n",
" <td>2022-03-15 21:00:00</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16 07:30:00</td>\n",
" <td>2022-03-16 21:00:00</td>\n",
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9272</th>\n",
" <td>NaN</td>\n",
2022-05-03 13:06:50 +02:00
" <td>2022-03-15T07:30:00 tot 2022-03-15T21:00:00</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
2022-05-03 13:06:50 +02:00
" <td>447c7742604345139e41def4cf1e4d3c</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaT</td>\n",
" <td>NaT</td>\n",
2022-05-03 13:06:50 +02:00
" <td>2022-03-15 07:30:00</td>\n",
" <td>2022-03-15 21:00:00</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16 07:30:00</td>\n",
" <td>2022-03-16 21:00:00</td>\n",
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9273</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
2022-05-03 13:06:50 +02:00
" <td>049cfd258c174bc49abf17883396d083</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>2022-03-16 07:30:00</td>\n",
" <td>2022-03-16 21:00:00</td>\n",
2022-04-14 15:43:51 +02:00
" </tr>\n",
" <tr>\n",
2022-05-03 13:06:50 +02:00
" <th>9274</th>\n",
2022-04-14 15:43:51 +02:00
" <td>NaN</td>\n",
" <td>NaN</td>\n",
2022-04-26 14:07:35 +02:00
" <td>2022-03-16T07:30:00 tot 2022-03-16T21:00:00</td>\n",
2022-05-03 13:06:50 +02:00
" <td>1e8cbe96e72c4c6ba6303f47bec8cdb5</td>\n",
" <td>Gennep</td>\n",
" <td>GM0907</td>\n",
2022-04-26 14:07:35 +02:00
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>NaT</td>\n",
" <td>2022-03-16 07:30:00</td>\n",
" <td>2022-03-16 21:00:00</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
2022-05-03 13:06:50 +02:00
"<p>8089 rows × 12 columns</p>\n",
"</div>"
],
"text/plain": [
2022-04-26 14:07:35 +02:00
" Openingstijden 14-03-2022 \\\n",
"0 NaN \n",
"1 NaN \n",
"2 NaN \n",
"3 NaN \n",
"4 2022-03-14T07:30:00 tot 2022-03-14T21:00:00 \n",
"... ... \n",
2022-05-03 13:06:50 +02:00
"9270 NaN \n",
"9271 2022-03-14T07:30:00 tot 2022-03-14T21:00:00 \n",
"9272 NaN \n",
"9273 NaN \n",
"9274 NaN \n",
"\n",
2022-04-26 14:07:35 +02:00
" Openingstijden 15-03-2022 \\\n",
"0 NaN \n",
"1 NaN \n",
"2 NaN \n",
"3 NaN \n",
"4 2022-03-15T07:30:00 tot 2022-03-15T21:00:00 \n",
"... ... \n",
2022-05-03 13:06:50 +02:00
"9270 NaN \n",
"9271 2022-03-15T07:30:00 tot 2022-03-15T21:00:00 \n",
"9272 2022-03-15T07:30:00 tot 2022-03-15T21:00:00 \n",
"9273 NaN \n",
"9274 NaN \n",
"\n",
2022-04-26 14:07:35 +02:00
" Openingstijden 16-03-2022 \\\n",
"0 2022-03-16T10:00:00 tot 2022-03-16T13:00:00 \n",
"1 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"2 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"3 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"4 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"... ... \n",
2022-05-03 13:06:50 +02:00
"9270 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"9271 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"9272 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"9273 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
"9274 2022-03-16T07:30:00 tot 2022-03-16T21:00:00 \n",
2022-04-14 15:43:51 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" UUID Gemeente CBS gemeentecode \\\n",
"0 3a612b2151fa4ab491b9e331355e6258 Valkenswaard GM0858 \n",
"1 9a01d765af0a467ea37f08d92db114ba Valkenswaard GM0858 \n",
"2 fc5869d33fbc4b06be659149fa615f4c Valkenswaard GM0858 \n",
"3 4427cc0b39e040ba8f75c333f19d66f0 Valkenswaard GM0858 \n",
"4 a893bb9add324ce29769f1c39afcc48d Valkenswaard GM0858 \n",
"... ... ... ... \n",
"9270 f744546cd6894e5e9a4db4bbfd81b4ee Gennep GM0907 \n",
"9271 1270081b1dc74cd7bea0f45973650408 Gennep GM0907 \n",
"9272 447c7742604345139e41def4cf1e4d3c Gennep GM0907 \n",
"9273 049cfd258c174bc49abf17883396d083 Gennep GM0907 \n",
"9274 1e8cbe96e72c4c6ba6303f47bec8cdb5 Gennep GM0907 \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Openingstijden 14-03-2022 van Openingstijden 14-03-2022 tot \\\n",
2022-04-26 14:07:35 +02:00
"0 NaT NaT \n",
"1 NaT NaT \n",
"2 NaT NaT \n",
"3 NaT NaT \n",
2022-05-03 13:06:50 +02:00
"4 2022-03-14 07:30:00 2022-03-14 21:00:00 \n",
2022-04-26 14:07:35 +02:00
"... ... ... \n",
2022-05-03 13:06:50 +02:00
"9270 NaT NaT \n",
"9271 2022-03-14 07:30:00 2022-03-14 21:00:00 \n",
"9272 NaT NaT \n",
"9273 NaT NaT \n",
"9274 NaT NaT \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Openingstijden 15-03-2022 van Openingstijden 15-03-2022 tot \\\n",
"0 NaT NaT \n",
"1 NaT NaT \n",
"2 NaT NaT \n",
"3 NaT NaT \n",
"4 2022-03-15 07:30:00 2022-03-15 21:00:00 \n",
2022-04-26 14:07:35 +02:00
"... ... ... \n",
2022-05-03 13:06:50 +02:00
"9270 NaT NaT \n",
"9271 2022-03-15 07:30:00 2022-03-15 21:00:00 \n",
"9272 2022-03-15 07:30:00 2022-03-15 21:00:00 \n",
"9273 NaT NaT \n",
"9274 NaT NaT \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
" Openingstijden 16-03-2022 van Openingstijden 16-03-2022 tot \n",
"0 2022-03-16 10:00:00 2022-03-16 13:00:00 \n",
"1 2022-03-16 07:30:00 2022-03-16 21:00:00 \n",
"2 2022-03-16 07:30:00 2022-03-16 21:00:00 \n",
"3 2022-03-16 07:30:00 2022-03-16 21:00:00 \n",
"4 2022-03-16 07:30:00 2022-03-16 21:00:00 \n",
"... ... ... \n",
"9270 2022-03-16 07:30:00 2022-03-16 21:00:00 \n",
"9271 2022-03-16 07:30:00 2022-03-16 21:00:00 \n",
"9272 2022-03-16 07:30:00 2022-03-16 21:00:00 \n",
"9273 2022-03-16 07:30:00 2022-03-16 21:00:00 \n",
"9274 2022-03-16 07:30:00 2022-03-16 21:00:00 \n",
2022-04-20 13:03:38 +02:00
"\n",
2022-05-03 13:06:50 +02:00
"[8089 rows x 12 columns]"
]
},
2022-05-04 13:24:29 +02:00
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2022-05-03 13:06:50 +02:00
"gdf_wims_split[['Openingstijden 14-03-2022 van','Openingstijden 15-03-2022 van','Openingstijden 16-03-2022 van', 'Openingstijden 14-03-2022 tot', 'Openingstijden 15-03-2022 tot','Openingstijden 16-03-2022 tot']] = gdf_wims_split[['Openingstijden 14-03-2022 van','Openingstijden 15-03-2022 van','Openingstijden 16-03-2022 van','Openingstijden 14-03-2022 tot','Openingstijden 15-03-2022 tot','Openingstijden 16-03-2022 tot']].apply(pd.to_datetime, errors='coerce')\n",
"gdf_wims_split"
]
},
{
"cell_type": "code",
"execution_count": 138,
2022-05-03 13:06:50 +02:00
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"import datetime as dt\n",
2022-05-04 13:24:29 +02:00
"wims_datemerge = pd.DataFrame()\n",
2022-05-03 13:06:50 +02:00
"def datesplit(df, column):\n",
" df = df.dropna(subset = ['{} van'.format(column)])\n",
" df1 = df.rename(columns={'{} van'.format(column):'vandate','{} tot'.format(column):'totdate', 'UUID':'UUID'})\n",
" return (pd.concat([pd.Series(r.UUID,pd.date_range(r.vandate, r.totdate, freq='0.5H')) \n",
" for r in df1.itertuples()])\n",
2022-05-04 13:24:29 +02:00
" .rename_axis('Openingstijden')\n",
2022-05-03 13:06:50 +02:00
" .reset_index(name='UUID'))\n",
"def plot_opening(df, label):\n",
2022-05-04 13:24:29 +02:00
" plt.figure(figsize=(13,13))\n",
2022-05-03 13:06:50 +02:00
" wims_datesplit_14 = df.loc[:, ('Openingstijden 14-03-2022 van','Openingstijden 14-03-2022 tot', 'UUID')]\n",
" wims_datesplit_15 = df.loc[:, ('Openingstijden 15-03-2022 van','Openingstijden 15-03-2022 tot', 'UUID')]\n",
" wims_datesplit_16 = df.loc[:, ('Openingstijden 16-03-2022 van','Openingstijden 16-03-2022 tot', 'UUID')]\n",
" wims_datesplit_14 = datesplit(wims_datesplit_14, 'Openingstijden 14-03-2022')\n",
" wims_datesplit_15 = datesplit(wims_datesplit_15, 'Openingstijden 15-03-2022')\n",
" wims_datesplit_16 = datesplit(wims_datesplit_16, 'Openingstijden 16-03-2022')\n",
2022-05-04 13:24:29 +02:00
"\n",
" wims_datesplit_14.reset_index()\n",
" wims_datesplit_15.reset_index()\n",
" wims_datesplit_16.reset_index()\n",
"\n",
" #wims_datesplit_14.info()\n",
" #wims_datesplit_15.info()\n",
" #wims_datesplit_16.info()\n",
"\n",
" \n",
" wims_datestack = pd.concat([wims_datesplit_14, wims_datesplit_15], ignore_index=True)\n",
" wims_datestack = pd.concat([wims_datestack, wims_datesplit_16], ignore_index=True)\n",
" \n",
"\n",
" \n",
"\n",
" wims_datestack.set_index('Openingstijden', drop=False, inplace=True)\n",
"\n",
" #print(wims_datestack['Openingstijden'].unique())\n",
"\n",
" xticks = []\n",
" xticklabels = []\n",
" datetimecount = 0\n",
2022-05-04 16:38:33 +02:00
" for datetime in wims_datestack.groupby(pd.Grouper(freq='30Min'))['Openingstijden'].unique():\n",
" if (datetime.size > 0):\n",
" xticks.append(datetime.ravel()[0])\n",
" if(datetimecount % 6 == 0):\n",
" ts = pd.to_datetime(datetime.ravel()[0])\n",
" #hardcoded for the data, sloppy code, quick fix, only applies to timestamps with 7 minute changes to reality\n",
" if (ts.minute == 7):\n",
" ts = ts - dt.timedelta(minutes=7)\n",
" xticklabels.append(ts.strftime(\"%m-%d %H:%M\"))\n",
2022-05-04 16:38:33 +02:00
" else:\n",
" xticklabels.append(\" \")\n",
2022-05-04 13:24:29 +02:00
" else:\n",
2022-05-04 16:38:33 +02:00
" xticks.append(\"\")\n",
2022-05-04 13:24:29 +02:00
" xticklabels.append(\"\")\n",
" datetimecount += 1\n",
"\n",
"\n",
2022-05-04 16:38:33 +02:00
" wims_datestack.groupby(pd.Grouper(freq='30Min')).count().plot(kind='bar', y='Openingstijden',width=1, figsize=(25, 25), title=\"Openingstijden stemlokalen staffel {} kiesgerechtigden\".format(label)).set_xticklabels(xticklabels, rotation=-45, ha=\"left\", rotation_mode=\"anchor\")\n",
2022-05-04 13:24:29 +02:00
"\n",
" #wims_datesplit_16.groupby(wims_datesplit_16[\"Openingstijden 16-03-2022\"].dt.hour).count().plot(kind=\"bar\", y='Openingstijden 16-03-2022')\n",
" #wims_datesplit_16.groupby(pd.Grouper(freq='30Min')).count().plot(kind='bar', y='Openingstijden 16-03-2022')\n",
" #wims_datesplit_15.groupby(wims_datesplit_15[\"Openingstijden 15-03-2022\"].dt.hour).count().plot(kind=\"bar\", y='Openingstijden 15-03-2022')\n",
" #wims_datesplit_14.groupby(wims_datesplit_14[\"Openingstijden 14-03-2022\"].dt.hour).count().plot(kind=\"bar\", y='Openingstijden 14-03-2022')\n"
2022-05-03 13:06:50 +02:00
]
},
{
"cell_type": "code",
2022-05-04 13:24:29 +02:00
"execution_count": 39,
2022-05-03 13:06:50 +02:00
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
2022-05-04 13:24:29 +02:00
"/tmp/ipykernel_7786/2535562662.py:7: SettingWithCopyWarning: \n",
2022-05-03 13:06:50 +02:00
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
" df_stemger_clean['binned'] = pd.cut(df_stemger_clean['Kiesgerechtigde bevolking'], bins, labels=labels)\n"
]
}
],
"source": [
2022-05-04 13:24:29 +02:00
"df_stemger = pd.read_excel('../data/Maatwerk_kiesgerechtigd_per_gemeente_def.xlsx', sheet_name='Tabel 1', header=0, skiprows= [0,1,3,5,6,7,344,345])\n",
2022-05-03 13:06:50 +02:00
"df_stemger_clean = df_stemger[df_stemger['gemeentecode'].isin(nl_map_clean['GM_CODE'])]\n",
"\n",
"bins = [0, 1, 3, 6, 10, 35, float(\"inf\")]\n",
"labels = ['0-10.000', '10.000-30.000', '30.000-60.000', '60.000-100.000', '100.000-350.000', '350.000+']\n",
"\n",
"df_stemger_clean['binned'] = pd.cut(df_stemger_clean['Kiesgerechtigde bevolking'], bins, labels=labels)\n"
]
},
{
2022-04-14 15:43:51 +02:00
"cell_type": "code",
"execution_count": 139,
2022-05-04 13:24:29 +02:00
"metadata": {
"scrolled": false
},
2022-04-14 15:43:51 +02:00
"outputs": [
{
"data": {
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 936x936 with 0 Axes>"
2022-04-14 15:43:51 +02:00
]
},
"metadata": {},
2022-05-03 13:06:50 +02:00
"output_type": "display_data"
2022-04-14 15:43:51 +02:00
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABZ8AAAW0CAYAAACpH33wAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABlp0lEQVR4nOzde7jmdV3v/9fbARxRPMFoKiJoyE8wIB2R8hBGGp5C8XypOe6M1ExtW8nWXVoeS39p5oE8EJEoAoqn8NQ2UzSLwUBFtI2IMYKCEAqCCvjZf9zfmRaLtWatGd4wAzwe1zXX3Ot7/Hzvdd/rguf6zueuMUYAAAAAAKDTzbb0AAAAAAAAuPERnwEAAAAAaCc+AwAAAADQTnwGAAAAAKCd+AwAAAAAQDvxGQAAAACAduIzAHCTVlWnV9UB1/M5d6mqS6tqxfT1x6rqGYtsu2tVjara5voc43Wpqo6sqlcuc9tRVT+/Gef4TFU9a9NHd/2pqj2q6t+r6pKqen5V3aKqPlJVP6iq45ax/2Y9NzcmG3sOpvfY3a/vMX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bAWD/txUJzNZ+T5HfmvUZuMcb4wqYOdozxf8dsiow7ZPZ8HT+NeaHv8Wum5XtPY3zaIuNbzGaNewqY5+Xqd/jvk+nDDccYzx6zKRpuNcZ49TLGcXqSvee99vfO1T8scVnnXsaxTl9g3++NMS7cyPgWen3M9f3Mfvmx15zn8TZjjFtNY17svbvR93xm359Xzfv+bD/GmDs1yvxw/ffztr/lGOO107rb1zQn+CZa6ufLeZn9vFzoGha6xvk/c5a6RgCARYnPAMAWM8b4QWY
2022-04-20 13:03:38 +02:00
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 1800x1800 with 1 Axes>"
2022-04-20 13:03:38 +02:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
2022-04-26 14:07:35 +02:00
},
{
2022-04-20 13:03:38 +02:00
"data": {
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 936x936 with 0 Axes>"
2022-05-03 13:06:50 +02:00
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABZkAAAW0CAYAAACkAQ23AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABhvklEQVR4nOzde7zldV3v8ffHARxNFONSKSJogCIBR0b0lBqGF7ycULyn5liE5DH15DnJ0SxL00xLK1GOFySTQkAJNco8mSVa6WCg4u3glQFULqIIKDB+zx+/NeNms/fsPR83MkzP5+PBg73X77d+v+9aa6/1mMdrf/f3V2OMAAAAAABAx61u7gEAAAAAAHDLJTIDAAAAANAmMgMAAAAA0CYyAwAAAADQJjIDAAAAANAmMgMAAAAA0CYyAwBbvao6r6oO/RGfc4+q+k5VrZp9/3dV9fRF9t2zqkZVbfejHONNqapOrKqXLXPfUVU/3TjHB6vqqC0f3Y9OVe1bVf9RVVdW1XOq6jZV9Z6q+lZVnbqM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Um+XlVvrGlJoV0z/YJr7ufCBfOOed95n4FPyTTrebH9N/eZeZdMs7YXs9z3ynzzP9vmfr3QY5z/2bfUY+yOCwDYyonMAMBS/jXJ9zL96fgmsz+NfniSf5xz813mbL9VplmOF2WKEl8aY+w0578dxxiPWOGxXpzkzvOWntg0pjHGlWOM548x7pbkvyX5zao6bOPmLTzP3PVP95jz9QWZnq9d5jzW248xNvsn/IsZY/zVGOP+mQLOyHQBxoXGu6Lnneei2fmTbHrtd84U6zZ6fJJHV9Xz5tz2/CT7JrnvmJa
2022-05-03 13:06:50 +02:00
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 1800x1800 with 1 Axes>"
2022-05-03 13:06:50 +02:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 936x936 with 0 Axes>"
2022-05-03 13:06:50 +02:00
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABZYAAAW0CAYAAABVClY6AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABh/klEQVR4nOzde7yl93z3//dHEkYI0mTSViOCShzSSBmkWhqCpriFOBe/jHLH4VeHu3qjVGmdD3dp63Q7RKgUSVBFtfKrKlGlExISQYuQiZBJIoQkRHx/f1xrpjvb3rPns2cn2RPP5+ORx+y9rmtd13ettfd65PFa3/29aowRAAAAAADYVte6ugcAAAAAAMCORVgGAAAAAKBFWAYAAAAAoEVYBgAAAACgRVgGAAAAAKBFWAYAAAAAoEVYBgBWpao6vaoOuYrPuU9V/aCqdpp9/+GqOnKRffetqlFVO1+VY7wyVdUxVfXCbdx3VNWvLuMcH6uqx/VHd9Wpqv2r6nNVdVFVPaWqrltVH6iq71XV8dtw/2U9N6y8rf28be33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WTfhBVX14dvslmT7c+fAY48dJXplpFvytm+Pe6rmXMe6lzpVMH5KcneSEreyz6Gs6xvhopln3r03ynap6Y03LBa3N9KHW3PeFs+Yd887z3gMfmWl282L7b+098yaZZmcvZlt/V+ab/9429+uFHuP8976lHuNyxwUArHLCMgCwkE8l+VGmPwvfYvZnz7+b5J/n3HyTOduvlWlm47cyhYivjzFuNOe/3cYY91nhsZ6T5FfmLSuxZUxjjIvGGE8fY9w8yf9I8odVdejmzc3zzF3PdJ85X5+V6fnac85jvcE
2022-05-03 13:06:50 +02:00
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 1800x1800 with 1 Axes>"
2022-05-03 13:06:50 +02:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 936x936 with 0 Axes>"
2022-05-03 13:06:50 +02:00
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABZwAAAW0CAYAAABCKMbzAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABie0lEQVR4nOzde7ytZV3v/e9PQJcIKnIwEXWJIgUEpKik6abwQOIWwuN+1IdlmpmVurdPSbp7tDxh2dbKQ3kEt6QCaqhUxoO5EyttoaAinkVZirDAUBBUwOv5477XarKY6zh/sBb4fr9evNac477HfV/3mGMMfX3mNa9RY4wAAAAAAMBS3WprDwAAAAAAgFsGwRkAAAAAgBaCMwAAAAAALQRnAAAAAABaCM4AAAAAALQQnAEAAAAAaCE4AwDbtKo6r6oOu4nPefequrKqtpu///uqOnY9+y6vqlFV29+UY7wxVdUJVfWyTdx3VNW9t+AcH62qZ2z+6G46VbVvVX26qq6oqudU1W2r6oNV9b2qOmUT7r9Fjw03rQ29htd9L7g5q6oVVXXW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5jU55HF66z//PXeU+923yeu2WKyutbZ3yT3n8WsXumX+gtHMfCrxe7xnXH3PUaBwC2cYIzALAh/5pp5twxC2+saX3VX01y5oKb77Zg+60yzeD8dqbo8PUxxh0X/LfzGONR6XVRkruuM4Nx7ZjGGFeMMZ4/xtg7yX9N8j+q6vA1mzfzPHdb8P3dF3x9YabHa7cF13r7McZG/5R/MWOMvxlj/FKmWDMy/an/YuNtPe86vj2fP8nan/2uSb61YJ/HJzm6qp634Lb
2022-05-03 13:06:50 +02:00
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 1800x1800 with 1 Axes>"
2022-05-03 13:06:50 +02:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 936x936 with 0 Axes>"
2022-05-03 13:06:50 +02:00
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABcUAAAW0CAYAAAAHKWtxAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABpnklEQVR4nOzde9yldV3v//dHQAcTlDi4FVTQ0F9ASEFEB90UqXgoEE+01Rx3hodM3du9t6dtWYpaWZaVWqYhSSqgRnnIyHQnZdlgICJqnhkk5RCKgQrj9/fHdc24GO65555hmAE/z+fjcT+457quda3vte57LX281vf+rhpjBAAAAAAAOrjNjh4AAAAAAABsL6I4AAAAAABtiOIAAAAAALQhigMAAAAA0IYoDgAAAABAG6I4AAAAAABtiOIAwK1GVV1YVUdv5/u8e1V9vap2mv/9nqp6wiaO3b+qRlXtvD3HeHOqqlOq6iUrPHZU1fdtxX18oKqetOWj236q6j5V9a9VdXVVPaOqdq2qv6qqr1bVGSu4/VY9NtyyVNWLqupNm9j3/Kr6k+09ppvDlj4nq+qxVfU3W3lf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/Em1dbc13rz7W52y7lqExrk798mTfT7pHkURu91v1EkrvMM9kfk+QpmZ6n76rvLPWy8WvKxRudc3PP7cXj905y+yTnLhz/1/P2ZHozbMk312YrfZ5t7AbXMD9Gaze1PzfT6yYAwHJEcQBgpT6UaZbnCYsb56UAHpzkfQub77aw/zaZYtiXMoWQz40x7rTwtdsY4yHZti5Nsu9Gs0o3jGmMcfUY49ljjHsm+Zkk/7Oqjlm
2022-05-03 13:06:50 +02:00
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 1800x1800 with 1 Axes>"
2022-05-03 13:06:50 +02:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 936x936 with 0 Axes>"
2022-05-03 13:06:50 +02:00
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABcUAAAW0CAYAAAAHKWtxAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABuCUlEQVR4nOzde5RlZX3n/89XQC4KigiO0ipo0AgMEmmRaHRM8ELUCUSDkvECjg7eEnXGmQTj5DeaBDWJMxqToOMVGEkQUAOamEhwnEhiJI2CCEjEG7QgtBgiCiK0z++PsxuPRXV3NfQF+L5ea9WqU8/Z++xnV9Wp1et9dj+nxhgBAAAAAIAO7ralJwAAAAAAAJuLKA4AAAAAQBuiOAAAAAAAbYjiAAAAAAC0IYoDAAAAANCGKA4AAAAAQBuiOADQXlVdWFVP3MzHfFBVfa+qtpq+/nhVHbmWbfeoqlFVW2/OOW5KVXV8Vf3eErcdVfVTt+EYn6qqF2/47Dafqnp4VX2+qq6rqldW1fZV9dGq+teqOnUJ+9+m781dXVUdVVVnr+W+51bVJzb3nDaFDXkeTds/vqouuR3H8/sGANwliOIA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f3bF1/h5ZyjtcseLFzQ+YGALBJieIAwJb2mSQ3ZrY8xC2mZQ1+MclZc8MPnLv/bkmWZXaF6+WZXaV877mPHccYT9vIc70yye4LliK5ZU5jjOvGGK8ZYzwkyb9P8l+q6uA1d2/gcR449/WD5m5fntn3675z57rTGOM2LTcxxvizMcbPZRblRmZLIiw234163AWumI6f5Jaf/S5Jvjm3zeFJDquqV8+NvSazK08fM2ZLmaxZLmK
2022-05-03 13:06:50 +02:00
"text/plain": [
2022-05-04 13:24:29 +02:00
"<Figure size 1800x1800 with 1 Axes>"
2022-04-20 13:03:38 +02:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
2022-05-03 13:06:50 +02:00
"def filter_binned(df_wims, df_stemger):\n",
" return df_wims[df_wims['CBS gemeentecode'].isin(df_stemger['gemeentecode'])]\n",
2022-04-26 14:07:35 +02:00
"\n",
2022-05-03 13:06:50 +02:00
"def make_graphs(label):\n",
" df_stemger_label = df_stemger_clean[df_stemger_clean['binned'].str.contains(label)]\n",
" df_stemger_label.head()\n",
" graph_wims = filter_binned(gdf_wims_dedupe, df_stemger_label)\n",
" graph_wims_split = filter_binned(gdf_wims_split, df_stemger_label)\n",
" plot_opening(graph_wims_split, label)\n",
" \n",
"for label in labels:\n",
" make_graphs(label)"
]
},
{
"cell_type": "code",
2022-05-04 13:24:29 +02:00
"execution_count": 41,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" 0 1 2 3 4 \\\n",
"0 Lijstnummer Aanduiding Volgnummer Naam kandidaat Totaal \n",
"1 Gebiednummer NaN NaN NaN NaN \n",
"2 Postcode NaN NaN NaN NaN \n",
"3 NaN opgeroepenen NaN NaN 194113 \n",
"4 NaN geldige stempas NaN NaN 96830 \n",
".. ... ... ... ... ... \n",
"445 NaN NaN 5 Oetomo, A.D. 38 \n",
"446 NaN NaN 6 Smid, D. 25 \n",
"447 NaN NaN 7 van Welij, P.Z. 10 \n",
"448 16 Blanco (Dokter, T.) NaN NaN 100 \n",
"449 NaN NaN 1 Dokter, T. 100 \n",
"\n",
" 5 \\\n",
"0 GRID Grafisch Museum Groningen \n",
"1 101 \n",
"2 9712 JN \n",
"3 1396 \n",
"4 560 \n",
".. ... \n",
"445 0 \n",
"446 0 \n",
"447 0 \n",
"448 0 \n",
"449 0 \n",
"\n",
" 6 \\\n",
"0 Gemeente Groningen (locatie Kreupelstraat) \n",
"1 102 \n",
"2 9712 HW \n",
"3 1311 \n",
"4 469 \n",
".. ... \n",
"445 0 \n",
"446 0 \n",
"447 0 \n",
"448 0 \n",
"449 0 \n",
"\n",
" 7 8 9 \\\n",
"0 Gemeente Groningen (locatie Kreupelstraat) Der Aa-kerk Der Aa-kerk \n",
"1 103 104 105 \n",
"2 9712 HW 9711 JB 9711 JB \n",
"3 1311 1311 1311 \n",
"4 491 595 607 \n",
".. ... ... ... \n",
"445 0 0 0 \n",
"446 0 0 0 \n",
"447 0 0 0 \n",
"448 0 0 0 \n",
"449 0 0 0 \n",
"\n",
" ... 175 176 177 178 \\\n",
"0 ... MFC 't Vinkhuys De Fontein Trefpunt Beijum Wijkcentrum Het Dok \n",
"1 ... 827 828 829 830 \n",
"2 ... 9743 BJ 9741 EZ 9737 AB 9733 CA \n",
"3 ... 0 0 0 0 \n",
"4 ... 369 503 367 537 \n",
".. ... ... ... ... ... \n",
"445 ... 0 0 0 0 \n",
"446 ... 0 2 0 0 \n",
"447 ... 0 0 0 0 \n",
"448 ... 2 2 1 0 \n",
"449 ... 2 2 1 0 \n",
"\n",
" 179 180 \\\n",
"0 PKN Blister Ten Boer Buurtcentrum Stadspark \n",
"1 831 832 \n",
"2 9791 CP 9727 HW \n",
"3 0 0 \n",
"4 218 283 \n",
".. ... ... \n",
"445 0 0 \n",
"446 0 0 \n",
"447 0 0 \n",
"448 0 2 \n",
"449 0 2 \n",
"\n",
" 181 182 \\\n",
"0 Kerk van J.C. van de H. der Laatste Dagen Maranathakerk \n",
"1 833 834 \n",
"2 9728 AR 9721 PE \n",
"3 0 0 \n",
"4 302 473 \n",
".. ... ... \n",
"445 0 0 \n",
"446 3 0 \n",
"447 0 1 \n",
"448 0 0 \n",
"449 0 0 \n",
"\n",
" 183 184 \n",
"0 Tennispark Vorenkamp (GLTB) Gemeentehuis Haren \n",
"1 835 836 \n",
"2 9722 HJ 9751 AN \n",
"3 0 0 \n",
"4 495 815 \n",
".. ... ... \n",
"445 0 0 \n",
"446 0 0 \n",
"447 0 0 \n",
"448 0 0 \n",
"449 0 0 \n",
"\n",
"[450 rows x 185 columns]\n"
]
}
],
"source": [
"#de eerste vijf rijen zijn meta-data en kunnen we gerust weghalen voor nu \n",
"df_gr_gr = pd.read_csv(r'../data/stemmen/01_Groningen/osv4-3_telling_gr2022_groningen.csv', skiprows=5, header=None, delimiter=';')\n",
2022-04-26 14:07:35 +02:00
"print(df_gr_gr)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"De data is heel gecompliceerd, dus we moeten het bruikbaar maken in pandas. Met hoe de data eruit ziet in een CSV in libre office willen we een constructie maken van de verschillende onderdelen. We hebben de data van de stemlokalen apart al, die kunnen we dus negeren. We willen de data van de lijsten apart hebben. "
]
},
{
"cell_type": "code",
2022-05-04 13:24:29 +02:00
"execution_count": 42,
"metadata": {},
"outputs": [],
"source": [
"\n",
"#TODO:mobiele stemlokalen eruit filteren die NIET 0,0 zijn\n",
"#TODO:datastandaard duitse verkiezingen stemlokaalafstand opzoeken"
]
}
],
"metadata": {
"interpreter": {
"hash": "3d1ccb9efb47efc90847d5703ae4e5663eea6663e461c6dfd943b50a653adc65"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
2022-05-04 16:38:33 +02:00
"version": "3.10.4"
}
2022-03-29 17:09:40 +02:00
},
"nbformat": 4,
"nbformat_minor": 2
}