Skip to content

Commit

Permalink
ensure that index information passes through castra
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Jul 15, 2015
1 parent b4a1de5 commit 72bbb7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dask/dataframe/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,15 @@ def test_from_dask_array_raises():
def test_to_castra():
pytest.importorskip('castra')
df = pd.DataFrame({'x': ['a', 'b', 'c', 'd'],
'y': [1, 2, 3, 4]})
'y': [1, 2, 3, 4]},
index=pd.Index([1., 2., 3., 4.], name='ind'))
a = dd.from_pandas(df, 2)

c = a.to_castra()
b = c.to_dask()
try:
tm.assert_frame_equal(df, c[:])
tm.assert_frame_equal(b.compute(), df)
finally:
c.drop()

Expand Down

0 comments on commit 72bbb7d

Please sign in to comment.