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

Function test_to_frame

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

Source from the content-addressed store, hash-verified

2777
2778
2779def test_to_frame():
2780 s = pd.Series([1, 2, 3], name="foo")
2781 a = dd.from_pandas(s, npartitions=2)
2782
2783 assert_eq(s.to_frame(), a.to_frame())
2784 assert_eq(s.to_frame("bar"), a.to_frame("bar"))
2785
2786
2787@pytest.mark.parametrize("as_frame", [False, False])

Callers

nothing calls this directly

Calls 3

to_frameMethod · 0.95
assert_eqFunction · 0.90
to_frameMethod · 0.45

Tested by

no test coverage detected