示例#1
0
 def test_is_not_complex(self):
     x = self.x.real
     self.assert_(not iscomplex(x))
示例#2
0
 def test_is_not_complex_dataframe(self):
     x = DataFrame(self.x.real)
     self.assert_(not iscomplex(x))
示例#3
0
 def test_iscomplex(self):
     x = self.x
     self.assert_(iscomplex(x),
                  'x is not complex and has type {0}'.format(x.dtype))
示例#4
0
 def test_iscomplex_dataframe(self):
     x = DataFrame(self.x)
     self.assert_(iscomplex(x),
                  'x is not complex and has dtypes {0}'.format(x.dtypes))