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

Function test_methods_tokenize_differently

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

Source from the content-addressed store, hash-verified

3523
3524
3525def test_methods_tokenize_differently():
3526 df = pd.DataFrame({"x": [1, 2, 3, 4]})
3527 df = dd.from_pandas(df, npartitions=1)
3528 assert (
3529 df.x.map_partitions(lambda x: pd.Series(x.min()))._name
3530 != df.x.map_partitions(lambda x: pd.Series(x.max()))._name
3531 )
3532
3533
3534def _assert_info(df, ddf, memory_usage=True):

Callers

nothing calls this directly

Calls 3

map_partitionsMethod · 0.45
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected