def test_ordered_table_typeError(): table = [(0, 1), (2, 3)] table = np.matrix(table) with pytest.raises(TypeError): a, b, c, d = analyses._ordered_table(table)
def test_ordered_table_list(): table = [(0, 1), (2, 3)] a, b, c, d = analyses._ordered_table(table) assert a == 0 assert b == 1 assert c == 2 assert d == 3
def test_ordered_table_DataFrame(): table = [(0, 1), (2, 3)] table = pd.DataFrame(table) a, b, c, d = analyses._ordered_table(table) assert a == 0 assert b == 1 assert c == 2 assert d == 3
def test_ordered_table_numpy(): table = [(0, 1), (2, 3)] table = np.array(table) a, b, c, d = analyses._ordered_table(table) assert a == 0 assert b == 1 assert c == 2 assert d == 3