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

Function test_concat_dataframe_empty

dask/dataframe/dask_expr/tests/test_concat.py:188–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186
187
188def test_concat_dataframe_empty():
189 df = pd.DataFrame({"a": [100, 200, 300]}, dtype="int64")
190 empty_df = pd.DataFrame([], dtype="int64")
191 df_concat = pd.concat([df, empty_df])
192
193 ddf = from_pandas(df, npartitions=1)
194 empty_ddf = from_pandas(empty_df, npartitions=1)
195 ddf_concat = concat([ddf, empty_ddf])
196 assert_eq(df_concat, ddf_concat)
197
198
199def test_concat_after_merge():

Callers

nothing calls this directly

Calls 3

from_pandasFunction · 0.90
concatFunction · 0.90
assert_eqFunction · 0.90

Tested by

no test coverage detected