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

Function test_set_index_numeric_columns

dask/dataframe/dask_expr/tests/test_shuffle.py:315–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313
314
315def test_set_index_numeric_columns():
316 pdf = pd.DataFrame(
317 {
318 0: list("ABAABBABAA"),
319 1: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
320 2: [1, 2, 3, 2, 1, 3, 2, 4, 2, 3],
321 }
322 )
323 ddf = from_pandas(pdf, 3)
324 assert_eq(ddf.set_index(0), pdf.set_index(0))
325
326
327def test_set_index_without_sort(df, pdf):

Callers

nothing calls this directly

Calls 3

set_indexMethod · 0.95
from_pandasFunction · 0.90
assert_eqFunction · 0.90

Tested by

no test coverage detected