def test_not_hascomplex(self): n = self.n x = randn(n, randint(1, n)) self.assertFalse(hascomplex(x))
def test_not_hascomplex_dataframe(self): n = self.n x = DataFrame(randn(n, randint(1, n))) self.assertFalse(hascomplex(x))
def test_hascomplex(self): n = self.n x = randn(n, randint(1, n)) + 1j self.assert_(hascomplex(x))
def test_hascomplex_dataframe(self): x = DataFrame(self.x) self.assert_(hascomplex(x))