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

Function test_query

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

queryMethod · 0.95
assert_eqFunction · 0.90

Tested by

no test coverage detected