def METHOD_NAME():
    records = [
        {"buildingID": 0, "date": "6/1/13", "temp_diff": 12, "str": "str"},
        {"buildingID": 1, "date": "6/1/13", "temp_diff": 0, "str": "str"},
        {"buildingID": 2, "date": "6/1/14", "temp_diff": 11, "str": "str"},
        {"buildingID": 0, "date": "6/1/15", "temp_diff": 5, "str": "str"},
        {"buildingID": 1, "date": "6/1/16", "temp_diff": 19, "str": "str"},
        {"buildingID": 2, "date": "6/1/17", "temp_diff": 32, "str": "str"},
    ]
    df = pd.DataFrame(records)
    expected_xs = ["6/1/13", "6/1/14", "6/1/15", "6/1/16", "6/1/17"]
    encoding = Encoding(
        chart_type=Encoding.chart_type_line,
        x="date",
        y="temp_diff",
        y_aggregation=Encoding.y_agg_sum,
    )
    xs, yx = GraphBase._get_x_y_values(df, encoding)
    assert xs == expected_xs
    assert yx == [12, 11, 5, 19, 32]
    encoding = Encoding(
        chart_type=Encoding.chart_type_line,
        x="date",
        y="temp_diff",
        y_aggregation=Encoding.y_agg_avg,
    )
    xs, yx = GraphBase._get_x_y_values(df, encoding)
    assert xs == expected_xs
    assert yx == [6, 11, 5, 19, 32]
    encoding = Encoding(
        chart_type=Encoding.chart_type_line,
        x="date",
        y="temp_diff",
        y_aggregation=Encoding.y_agg_max,
    )
    xs, yx = GraphBase._get_x_y_values(df, encoding)
    assert xs == expected_xs
    assert yx == [12, 11, 5, 19, 32]
    encoding = Encoding(
        chart_type=Encoding.chart_type_line,
        x="date",
        y="temp_diff",
        y_aggregation=Encoding.y_agg_min,
    )
    xs, yx = GraphBase._get_x_y_values(df, encoding)
    assert xs == expected_xs
    assert yx == [0, 11, 5, 19, 32]
    encoding = Encoding(
        chart_type=Encoding.chart_type_line,
        x="date",
        y="temp_diff",
        y_aggregation=Encoding.y_agg_none,
    )
    xs, yx = GraphBase._get_x_y_values(df, encoding)
    assert xs == ["6/1/13", "6/1/13", "6/1/14", "6/1/15", "6/1/16", "6/1/17"]
    assert yx == [12, 0, 11, 5, 19, 32]
    try:
        encoding = Encoding(
            chart_type=Encoding.chart_type_line,
            x="buildingID",
            y="date",
            y_aggregation=Encoding.y_agg_avg,
        )
        GraphBase._get_x_y_values(df, encoding)
        assert False
    except InvalidEncodingError:
        pass
    try:
        encoding = Encoding(
            chart_type=Encoding.chart_type_line,
            x="date",
            y="str",
            y_aggregation=Encoding.y_agg_avg,
        )
        GraphBase._get_x_y_values(df, encoding)
        assert False
    except InvalidEncodingError:
        pass