Example #1
0
 def test_not_hascomplex(self):
     n = self.n
     x = randn(n, randint(1, n))
     self.assertFalse(hascomplex(x))
Example #2
0
 def test_not_hascomplex_dataframe(self):
     n = self.n
     x = DataFrame(randn(n, randint(1, n)))
     self.assertFalse(hascomplex(x))
Example #3
0
 def test_hascomplex(self):
     n = self.n
     x = randn(n, randint(1, n)) + 1j
     self.assert_(hascomplex(x))
Example #4
0
 def test_hascomplex_dataframe(self):
     x = DataFrame(self.x)
     self.assert_(hascomplex(x))