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

Function test_divisions

dask/dataframe/io/tests/test_sql.py:272–278  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

270
271
272def test_divisions(db):
273 data = read_sql_table(
274 "test", db, columns=["name"], divisions=[0, 2, 4], index_col="number"
275 )
276 assert data.divisions == (0, 2, 4)
277 assert data.index.max().compute() == 4
278 assert_eq(data, df[["name"]][df.index <= 4])
279
280
281@pytest.mark.xfail(PANDAS_GE_300, reason="memory doesn't match")

Callers

nothing calls this directly

Calls 4

read_sql_tableFunction · 0.90
assert_eqFunction · 0.90
computeMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected