Skip to content

Commit

Permalink
add more explicit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Jan 23, 2019
1 parent 9cc5807 commit 37c144d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dask/dataframe/tests/test_utils_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,17 @@ def test_is_dataframe_like():
assert is_dataframe_like(df)
assert not is_dataframe_like(df.x)
assert not is_dataframe_like(df.index)
assert not is_dataframe_like(pd.DataFrame)

assert not is_series_like(df)
assert is_series_like(df.x)
assert not is_series_like(df.index)
assert not is_series_like(pd.Series)

assert not is_index_like(df)
assert not is_index_like(df.x)
assert is_index_like(df.index)
assert not is_index_like(pd.Index)

ddf = dd.from_pandas(df, npartitions=1)
assert is_dataframe_like(ddf)

0 comments on commit 37c144d

Please sign in to comment.