

def test_simple(self):
    (x, y) = (list('ABC'), [1, 22])
    result = cartesian_product([x, y])
    expected = [np.array(['A', 'A', 'B', 'B', 'C', 'C']), np.array([1, 22, 1, 22, 1, 22])]
    assert_equal(result, expected)

dataset/ETHPy150Open pydata/pandas/pandas/tools/tests/test_util.py TestCartesianProduct.test_simple/original