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

Function test_series_format

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

from_pandasFunction · 0.90
to_stringMethod · 0.45

Tested by

no test coverage detected