Skip to content

Simple Open Data exploitation and visualizations for house pricing in France

Notifications You must be signed in to change notification settings

s-rigaud/OpenData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To watch the maps

Go to the map folder and choose the one you are searching for. → Overview

To lauch and manipulate the project

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

The main goals

  • 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

General workflow

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.

Overview

Original model

Original model

Heat Map

Heat map

Point Map

Point map

Department Map

Department map

Region Map

Region map

Sources

Valeurs foncières

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/

French department/region mapping

Download and modified from https://gist.github.com/gzurbach/b0ccdeda51ec2fe135d5

Addresses API from French government

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

About

Simple Open Data exploitation and visualizations for house pricing in France

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages