def METHOD_NAME(get_dataframe):
    """
    Tests disaggregation by a label query
    """
    locations = locate_subscribers(
        "2016-01-01",
        "2016-01-02",
        spatial_unit=make_spatial_unit("admin", level=3),
        method="most-common",
    )
    metric = SubscriberHandsetCharacteristic(
        "2016-01-01", "2016-01-02", characteristic="hnd_type"
    )
    labelled = LabelledSpatialAggregate(locations=locations, labels=metric)
    df = get_dataframe(labelled)
    assert len(df) == 50
    assert len(df.pcod.unique()) == 25
    assert len(df.value_label.unique()) == 2
    # Total number of values should equal the initial number of subscribers
    assert df.value.sum() == len(get_dataframe(locations))
    assert (
        df.groupby("pcod").value.sum().tolist()
        == get_dataframe(SpatialAggregate(locations=locations)).value.tolist()
    )