()
| 2992 | |
| 2993 | |
| 2994 | def 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( |