MCPcopy Create free account
hub / github.com/dask/dask / test_Index

Function test_Index

dask/dataframe/tests/test_dataframe.py:184–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183
184def test_Index():
185 for case in [
186 pd.DataFrame(np.random.randn(10, 5), index=list("abcdefghij")),
187 pd.DataFrame(
188 np.random.randn(10, 5),
189 index=pd.date_range("2011-01-01", freq="D", periods=10),
190 ),
191 ]:
192 ddf = dd.from_pandas(case, 3)
193 assert_eq(ddf.index, case.index)
194 pytest.raises(AttributeError, lambda ddf=ddf: ddf.index.index)
195
196
197def test_axes():

Callers

nothing calls this directly

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected