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

Function test_query

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

Source from the content-addressed store, hash-verified

2534
2535
2536def test_query():
2537 df = pd.DataFrame({"x": [1, 2, 3, 4], "y": [5, 6, 7, 8]})
2538 ddf = dd.from_pandas(df, npartitions=2)
2539 assert_eq(ddf.query("x**2 > y"), df.query("x**2 > y"))
2540 assert_eq(
2541 ddf.query("x**2 > @value", local_dict={"value": 4}),
2542 df.query("x**2 > @value", local_dict={"value": 4}),
2543 )
2544
2545
2546@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

queryMethod · 0.95
assert_eqFunction · 0.90

Tested by

no test coverage detected