

def test_datetimeindex(self):
    x = date_range('2000-01-01', periods=2)
    result = [Index(expected).day for y in cartesian_product([x, x])]
    expected = [np.array([1, 1, 2, 2]), np.array([1, 2, 1, 2])]
    assert_equal(result, expected)

dataset/ETHPy150Open pydata/pandas/pandas/tools/tests/test_util.py TestCartesianProduct.test_datetimeindex/VarMisuse@26/36 `y`->`expected`