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

Function test_getitem_meta

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

Source from the content-addressed store, hash-verified

3851
3852
3853def test_getitem_meta():
3854 data = {"col1": ["a", "a", "b"], "col2": [0, 1, 0]}
3855
3856 df = pd.DataFrame(data=data, columns=["col1", "col2"])
3857 ddf = dd.from_pandas(df, npartitions=1)
3858
3859 assert_eq(df.col2[df.col1 == "a"], ddf.col2[ddf.col1 == "a"])
3860
3861
3862def test_getitem_string_subclass():

Callers

nothing calls this directly

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected