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

Function test_round

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
roundMethod · 0.45

Tested by

no test coverage detected