def test_compare_sheets_to_IPP():  # WIP. for now it only generates the first two sheets, to be compared to Agrégats IPP
    df = get_tidy_data(2012)
    variables_CN1 = generate_CN1_variables(2012)
    variables_CN2 = generate_CN2_variables(2012)
    values_CN1_2012, formulas_CN1 = get_or_construct_data(df, variables_CN1, range(1949, 2013))
    values_CN2_2012, formulas_CN2 = get_or_construct_data(df, variables_CN2, range(1949, 2013))
    return values_CN1_2012, values_CN2_2012
Beispiel #2
0
def test_compare_sheets_to_IPP(
):  # WIP. for now it only generates the first two sheets, to be compared to Agrégats IPP
    df = get_tidy_data(2012)
    variables_CN1 = generate_CN1_variables(2012)
    variables_CN2 = generate_CN2_variables(2012)
    values_CN1_2012, formulas_CN1 = get_or_construct_data(
        df, variables_CN1, range(1949, 2013))
    values_CN2_2012, formulas_CN2 = get_or_construct_data(
        df, variables_CN2, range(1949, 2013))
    return values_CN1_2012, values_CN2_2012
Beispiel #3
0
def generate_CN2(year):
    df = get_tidy_data(year)
    variables_CN2 = generate_CN2_variables(year)
    values_CN2, formulas_CN2 = get_or_construct_data(df, variables_CN2,
                                                     range(1949, year + 1))
    return values_CN2, formulas_CN2
def generate_CN2(year):
    df = get_tidy_data(year)
    variables_CN2 = generate_CN2_variables(year)
    values_CN2, formulas_CN2 = get_or_construct_data(df, variables_CN2, range(1949, year + 1))
    return values_CN2, formulas_CN2