def test_idadf_head_projected_3col(self, idadf, df):
    if (len(idadf.columns) >= 4):
        columns = idadf.columns[1:4].tolist()
        newidadf = idadf[columns]
        sortkey = newidadf.columns[0]
        if newidadf._get_numerical_columns():
            sortkey = newidadf._get_numerical_columns()[0]
        ida_head = newidadf.head()
        df_sorted = df.sort_values(sortkey)
        df_head = df_sorted[columns].head()
        assert isinstance(ida_head, pandas.core.frame.DataFrame)
        assert (len(ida_head) == 5)
        assert (ida_head[sortkey].tolist() == df_head[sortkey].tolist())
def test_idadf_head_projected_3col(self, idadf, df):
    if (len(idadf.columns) >= 4):
        columns = idadf.columns[1:4].tolist()
        newidadf = idadf[columns]
        sortkey = newidadf.columns[0]
        if newidadf._get_numerical_columns():
            sortkey = newidadf._get_numerical_columns()[0]
        ida_head = newidadf.head()
        df_sorted = df.sort_values(sortkey)
        df_head = df_sorted[columns].head()
        assert isinstance(ida_head, pandas.core.frame.DataFrame)
        assert (len(ida_head) == 5)
        assert (ida_head[sortkey].tolist() == df_head[sortkey].tolist())