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

Function test_lengths

dask/dataframe/dask_expr/tests/test_datasets.py:71–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70
71def test_lengths():
72 df = timeseries(freq="1h", start="2000-01-01", end="2000-01-03", seed=123)
73 assert len(df) == sum(new_collection(Lengths(df.expr).optimize()).compute())
74
75
76def test_timeseries_empty_projection():

Callers

nothing calls this directly

Calls 6

timeseriesFunction · 0.90
LengthsClass · 0.90
new_collectionFunction · 0.85
sumFunction · 0.50
computeMethod · 0.45
optimizeMethod · 0.45

Tested by

no test coverage detected