MCPcopy
hub / github.com/dask/dask / test_dataframe_items

Function test_dataframe_items

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

Source from the content-addressed store, hash-verified

3412 ],
3413)
3414def test_dataframe_items(columns):
3415 df = pd.DataFrame([[1, 10], [2, 20], [3, 30], [4, 40]], columns=columns)
3416 ddf = dd.from_pandas(df, npartitions=2)
3417 for a, b in zip(df.items(), ddf.items()):
3418 assert a[0] == b[0] # column name
3419 assert_eq(a[1], b[1].compute()) # column values
3420
3421
3422def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…