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

Function test_series_format

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

from_pandasFunction · 0.90
to_stringMethod · 0.45

Tested by

no test coverage detected