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

Function test_meta

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

Source from the content-addressed store, hash-verified

297
298
299def test_meta(db):
300 data = read_sql_table(
301 "test", db, index_col="number", meta=dd.from_pandas(df, npartitions=1)
302 ).compute()
303 assert (data.name == df.name).all()
304 assert data.index.name == "number"
305 assert_eq(data, df)
306
307
308def test_meta_no_head_rows(db):

Callers

nothing calls this directly

Calls 4

read_sql_tableFunction · 0.90
assert_eqFunction · 0.90
computeMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected