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

Function test_dataframe_items

dask/dataframe/tests/test_dataframe.py:3405–3410  ·  view source on GitHub ↗
(columns)

Source from the content-addressed store, hash-verified

3403 ],
3404)
3405def test_dataframe_items(columns):
3406 df = pd.DataFrame([[1, 10], [2, 20], [3, 30], [4, 40]], columns=columns)
3407 ddf = dd.from_pandas(df, npartitions=2)
3408 for a, b in zip(df.items(), ddf.items()):
3409 assert a[0] == b[0] # column name
3410 assert_eq(a[1], b[1].compute()) # column values
3411
3412
3413def test_dataframe_itertuples_with_index_false():

Callers

nothing calls this directly

Calls 3

itemsMethod · 0.95
assert_eqFunction · 0.90
computeMethod · 0.45

Tested by

no test coverage detected