We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec14701 commit ba08846Copy full SHA for ba08846
pandas/tests/test_frame.py
@@ -1510,12 +1510,13 @@ def test_constructor_corner(self):
1510
1511
def test_constructor_scalar_inference(self):
1512
data = {'int' : 1, 'bool' : True,
1513
- 'float' : 3., 'object' : 'foo'}
+ 'float' : 3., 'complex': 4j, 'object' : 'foo'}
1514
df = DataFrame(data, index=np.arange(10))
1515
1516
self.assert_(df['int'].dtype == np.int64)
1517
self.assert_(df['bool'].dtype == np.bool_)
1518
self.assert_(df['float'].dtype == np.float64)
1519
+ self.assert_(df['complex'].dtype == np.complex64)
1520
self.assert_(df['object'].dtype == np.object_)
1521
1522
def test_constructor_DataFrame(self):
0 commit comments