Go to the map folder and choose the one you are searching for. → Overview
Download the latest file from the French government website and move it in the data folder.
Then rename it to valeurs_foncieres.txt
Ensure you have python 3 or more running on your computer.
Next open a terminal and type:
pip install -r requirements.txt
python open_data.py
NB: we used the 2019 dataset that you can find here
- Exploiting the file containing all of the real estate values recorded in the public French governement website
- Creating simple maps to easily understand and make a rought idea of what the dataset contains
- Have some fun using and modelizing with Python 3
We are using csv and pandas modules to load and handle more than 2 million record of real estate values. The main file does not contains any exploitable coordinates but only raw address attributes. To obtain the exact location, we are calling an external API which given the address in an appropriate format returns the latitude and the longitude. Then we can deal with the location and place the point on a map created using the folium python module based over Leaflet.
To avoid calling the external API to often we created a pickled address cache file mapping between requests and locations.
Licence Ouverte / Open Licence version 2.0
https://www.data.gouv.fr/fr/datasets/5cc1b94a634f4165e96436c1/
Download from https://www.data.gouv.fr/fr/datasets/demandes-de-valeurs-foncieres/
Download and modified from https://gist.github.com/gzurbach/b0ccdeda51ec2fe135d5
Licence Ouverte / Open Licence version 2.0
Call on https://api-adresse.data.gouv.fr/search
See documentation : https://geo.api.gouv.fr/adresse & https://geo.api.gouv.fr/faq