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

Function test_meta_duplicated

dask/dataframe/tests/test_utils_dataframe.py:248–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246
247
248def test_meta_duplicated():
249 df = pd.DataFrame(columns=["A", "A", "B"])
250 res = meta_nonempty(df)
251
252 if PANDAS_GE_300:
253 o = dd.utils._object
254 else:
255 o = "foo"
256
257 exp = pd.DataFrame(
258 [[o, o, o], [o, o, o]],
259 index=meta_nonempty(df.index),
260 columns=["A", "A", "B"],
261 )
262 tm.assert_frame_equal(res, exp)
263
264
265def test_meta_nonempty_empty_categories():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected