module data.data_elections

Short summary

module actuariat_python.data.data_elections

Summary of the data inside this subfolder.

Documentation

Summary of the data inside this subfolder.

Data about elections

Due to connectivity issues, some data related to the French elections were added to this module instead of downloading them every time. The default url comes from Elections présidentielle 2012 - Résultats. You can get more at Elections présidentielles 1965-2012. Two files cdsp_presi2012t1_circ.xls and cdsp_presi2012t2_circ.xls contains the results for the 2012 French elections for the first and second rounds.

Example for the second round:

Code du département    Libellé du département    Code de la circonscription    Inscrits [...]
[...] Votants    Exprimés    Blancs et nuls    François HOLLANDE (PS)    Nicolas SARKOZY (UMP)
01    AIN    1    79024    65819    61677    4142    27511    34166
01    AIN    2    86845    73070    68995    4075    28617    40378
01    AIN    3    69858    56868    53723    3145    23444    30279
01    AIN    4    84501    70893    66640    4253    26262    40378
01    AIN    5    73638    59937    56039    3898    25499    30540
02    AISNE    1    72627    58568    54675    3893    30001    24674
02    AISNE    2    73203    59401    55437    3964    29145    26292
02    AISNE    3    70334    56747    52699    4048    27977    24722

source on GitHub