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

Function test_round

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

Source from the content-addressed store, hash-verified

2992
2993
2994def test_round():
2995 df = pd.DataFrame({"col1": [1.123, 2.123, 3.123], "col2": [1.234, 2.234, 3.234]})
2996 ddf = dd.from_pandas(df, npartitions=2)
2997 assert_eq(ddf.round(), df.round())
2998 assert_eq(ddf.round(2), df.round(2))
2999
3000
3001@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
roundMethod · 0.45

Tested by

no test coverage detected