<gh_stars>0
'''
Function to calculate the probability of having children

By Dr. <NAME>
Copyright 2020
'''

def calculateChildrenProbability(df_withchildren, baseyear):
    year = str(baseyear)
    childrenprobability = list()
    childrenprobability.append(df_withchildren[year].iloc[1])
    childrenprobability.append(df_withchildren[year].iloc[2])
    childrenprobability = childrenprobability / sum(childrenprobability)
    return childrenprobability
'''
Function to calculate the probability of having children

By Dr. <NAME>
Copyright 2020
'''

def calculateChildrenProbability(df_withchildren, baseyear):
    year = str(baseyear)
    childrenprobability = list()
    childrenprobability.append(df_withchildren[year].iloc[1])
    childrenprobability.append(df_withchildren[year].iloc[2])
    childrenprobability = childrenprobability / sum(childrenprobability)
    return childrenprobability
Function to calculate the probability of having children  By Dr. <NAME> Copyright 2020