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

Function test_setitem

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

Source from the content-addressed store, hash-verified

4677
4678
4679def test_setitem():
4680 df = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
4681 ddf = dd.from_pandas(df.copy(), 2)
4682 df[df.columns] = 1
4683 ddf[ddf.columns] = 1
4684 assert_eq(df, ddf)
4685
4686
4687def test_setitem_with_bool_dataframe_as_key():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
copyMethod · 0.45

Tested by

no test coverage detected