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

Function test_divisions

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

Source from the content-addressed store, hash-verified

269
270
271def test_divisions(db):
272 data = read_sql_table(
273 "test", db, columns=["name"], divisions=[0, 2, 4], index_col="number"
274 )
275 assert data.divisions == (0, 2, 4)
276 assert data.index.max().compute() == 4
277 assert_eq(data, df[["name"]][df.index <= 4])
278
279
280@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