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

Function test_series_format

dask/dataframe/dask_expr/tests/test_format.py:88–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86
87
88def test_series_format():
89 s = pd.Series([1, 2, 3, 4, 5, 6, 7, 8], index=list("ABCDEFGH"))
90 ds = from_pandas(s, 3)
91
92 exp = dedent(
93 """\
94 npartitions=3
95 A int64
96 D ...
97 G ...
98 H ..."""
99 )
100 assert ds.to_string() == exp
101
102
103def test_series_repr():

Callers

nothing calls this directly

Calls 2

from_pandasFunction · 0.90
to_stringMethod · 0.45

Tested by

no test coverage detected