def perform_group_by(h2oFrame, na):
    """
    Given a H2OFrame h2oFrame, and the na treatment, perform chained group by aggregation and return the
    results of aggregations in an H2OFrame.

    :param h2oFrame:
    :param na:
    :return:
    """
    grouped = h2oFrame.group_by("class")
    grouped.count(na=na).min(na=na).max(na=na).mean(na=na).var(na=na).sd(na=na).ss(na=na).sum(na=na)
    print(grouped.get_frame())
    return grouped.get_frame()