def get_proportion(part, whole):
    """ Get proportion between part and whole, if whole is zero, returns 0 to be used as 0%
    """
    if whole == 0:
        return 0
    return float(part)/float(whole)