|
27 | 27 | params={
|
28 | 28 | "normalization_rules": [
|
29 | 29 | # 1. Renommage des colonnes
|
30 |
| - { |
31 |
| - "origin": "nom_de_lorganisme", |
32 |
| - "destination": "nom", |
33 |
| - }, |
34 |
| - { |
35 |
| - "origin": "longitudewgs84", |
36 |
| - "destination": "longitude", |
37 |
| - }, |
38 |
| - { |
39 |
| - "origin": "latitudewgs84", |
40 |
| - "destination": "latitude", |
41 |
| - }, |
| 30 | + {"origin": "nom_de_lorganisme", "destination": "nom"}, |
| 31 | + {"origin": "enseigne_commerciale", "destination": "nom_commercial"}, |
| 32 | + {"origin": "longitudewgs84", "destination": "longitude"}, |
| 33 | + {"origin": "latitudewgs84", "destination": "latitude"}, |
42 | 34 | # 2. Transformation des colonnes
|
| 35 | + {"origin": "site_web", "transformation": "clean_url", "destination": "url"}, |
43 | 36 | {
|
44 | 37 | "origin": "ecoorganisme",
|
45 | 38 | "transformation": "strip_lower_string",
|
|
86 | 79 | "destination": "sous_categorie_codes",
|
87 | 80 | },
|
88 | 81 | # 3. Ajout des colonnes avec une valeur par défaut
|
89 |
| - { |
90 |
| - "column": "statut", |
91 |
| - "value": constants.ACTEUR_ACTIF, |
92 |
| - }, |
| 82 | + {"column": "statut", "value": constants.ACTEUR_ACTIF}, |
93 | 83 | # 4. Transformation du dataframe
|
94 | 84 | {
|
95 | 85 | "origin": ["siret", "siren"],
|
|
165 | 155 | {"remove": "point_de_reparation"},
|
166 | 156 | {"remove": "perimetre_dintervention"},
|
167 | 157 | {"remove": "service_a_domicile"},
|
| 158 | + {"remove": "consignes_dacces"}, |
168 | 159 | # 6. Colonnes à garder (rien à faire, utilisé pour le controle)
|
169 | 160 | {"keep": "email"},
|
| 161 | + {"keep": "adresse_complement"}, |
170 | 162 | ],
|
171 | 163 | "endpoint": (
|
172 | 164 | "https://data.pointsapport.ademe.fr/data-fair/api/v1/datasets/"
|
|
0 commit comments