def test_idadf_head_default(self, idadb, idadf, df):
    sortkey = idadf.columns[0]
    if idadf._get_numerical_columns():
        sortkey = idadf._get_numerical_columns()[0]
    ida_head = idadf.head()
    assert isinstance(ida_head, pandas.core.frame.DataFrame)
    assert (len(ida_head) == 5)
    df_head = df.sort_values(sortkey).head()
    assert (ida_head[sortkey].tolist() == df_head[sortkey].tolist())
def test_idadf_head_default(self, idadb, idadf, df):
    sortkey = idadf.columns[0]
    if idadf._get_numerical_columns():
        sortkey = idadf._get_numerical_columns()[0]
    ida_head = idadf.head()
    assert isinstance(ida_head, pandas.core.frame.DataFrame)
    assert (len(ida_head) == 5)
    df_head = df.sort_values(sortkey).head()
    assert (ida_head[sortkey].tolist() == df_head[sortkey].tolist())