()
| 2990 | |
| 2991 | |
| 2992 | def 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( |