Skip to content

Commit

Permalink
TST: test to check #457
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Dec 8, 2011
1 parent c9cd045 commit def3886
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pandas/tests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,11 @@ def test_constructor_rec(self):
self.assert_(np.array_equal(df2.columns, rec.dtype.names))
self.assert_(df2.index.equals(index))

rng = np.arange(len(rec))[::-1]
df3 = DataFrame(rec, index=rng, columns=['C', 'B'])
expected = DataFrame(rec, index=rng).reindex(columns=['C', 'B'])
assert_frame_equal(df3, expected)

def test_constructor_bool(self):
df = DataFrame({0 : np.ones(10, dtype=bool),
1 : np.zeros(10, dtype=bool)})
Expand Down

0 comments on commit def3886

Please sign in to comment.