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

Function test_with_boundary

dask/dataframe/tests/test_dataframe.py:4418–4423  ·  view source on GitHub ↗
(start, stop, right_boundary, left_boundary, drop)

Source from the content-addressed store, hash-verified

4416 ],
4417)
4418def test_with_boundary(start, stop, right_boundary, left_boundary, drop):
4419 x = np.array([-1, -2, 2, 4, 3])
4420 df = pd.DataFrame({"B": range(len(x))}, index=x)
4421 result = methods.boundary_slice(df, start, stop, right_boundary, left_boundary)
4422 expected = df.drop(drop)
4423 tm.assert_frame_equal(result, expected)
4424
4425
4426@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

dropMethod · 0.95

Tested by

no test coverage detected