def METHOD_NAME(get_dataframe):
    """
    Total transaction amount returns expected result.
    """
    q = DFSTotalMetricAmount(
        metric="commission",
        start_date="2016-01-05",
        end_date="2016-01-06",
        aggregation_unit="admin2",
    )
    df = get_dataframe(q)
    result = df.to_csv(index=False).strip()
    result_expected = textwrap.dedent(
        """
        date,pcod,value
        2016-01-05,524 1 01,129914.0
        2016-01-05,524 1 02,88893.0
        2016-01-05,524 1 03,117333.0
        2016-01-05,524 2 04,103040.0
        2016-01-05,524 2 05,234969.0
        2016-01-05,524 3 07,446278.0
        2016-01-05,524 3 08,840320.0
        2016-01-05,524 3 09,633194.0
        2016-01-05,524 4 10,640180.0
        2016-01-05,524 4 11,224463.0
        2016-01-05,524 4 12,1743673.0
        2016-01-05,524 5 13,375005.0
        2016-01-05,524 5 14,439312.0
        2016-01-06,524 1 01,100116.0
        2016-01-06,524 1 02,126280.0
        2016-01-06,524 1 03,96396.0
        2016-01-06,524 2 04,105540.0
        2016-01-06,524 2 05,227195.0
        2016-01-06,524 3 07,473434.0
        2016-01-06,524 3 08,818439.0
        2016-01-06,524 3 09,631098.0
        2016-01-06,524 4 10,643176.0
        2016-01-06,524 4 11,238472.0
        2016-01-06,524 4 12,1794329.0
        2016-01-06,524 5 13,331421.0
        2016-01-06,524 5 14,428548.0
        """
    ).strip()
    assert result_expected == result