module exams.ex2016
#
Short summary#
module actuariat_python.exams.ex2016
Dummy data for 2016
Functions#
function |
truncated documentation |
---|---|
enumerate a list of appointments for a given list of ids |
|
enumerate a person randomly chosen |
Documentation#
Dummy data for 2016
- actuariat_python.exams.ex2016.enumerate_appointments(persons, nb=(1, 4), price=(60.0, 120.0), first_date=None, end_date=None, formula=None)#
enumerate a list of appointments for a given list of ids
- Paramètres:
persons – list of persons
nb – range for the number of appointments
price – range for prices
begin_date – first date (or now - 2 months)
end_date – end date (or now)
formula – formula for the prices of the appointments
- Renvoie:
enumerator of dictionaries
- actuariat_python.exams.ex2016.enumerate_person(hf=0.5, age=(18, 60), n=100)#
enumerate a person randomly chosen
- Paramètres:
hf – proportion of men
age – range for age
n – number of person to generate
- Renvoie:
enumerator of dictionaries