module data.data_shape_files#

Short summary#

module ensae_teaching_cs.data.data_shape_files

Shapefiles data.

source on GitHub

Functions#

function

truncated documentation

data_shape_files

Downloads shape files.

load_french_departments

Loads a dataframe with the list of French departments and the center of each.

Documentation#

Shapefiles data.

source on GitHub

ensae_teaching_cs.data.data_shape_files.data_shape_files(name, cache='.', load=True)#

Downloads shape files.

Paramètres
  • name – name of the shape file (see below)

  • cache – cache folder

  • load – loads the shape files, the function relies on geopandas

Renvoie

shape files

List of availables shape files: * “depfr2018”: see `Contours des départements français issus d’OpenStreetMap

source on GitHub

ensae_teaching_cs.data.data_shape_files.load_french_departments()#

Loads a dataframe with the list of French departments and the center of each.

source on GitHub