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

Function test_assign_na_float_columns

dask/dataframe/tests/test_dataframe.py:4905–4913  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4903
4904
4905def test_assign_na_float_columns():
4906 # See https://github.com/dask/dask/issues/7156
4907 df_pandas = pd.DataFrame({"a": [1.1]}, dtype="Float64")
4908 df = dd.from_pandas(df_pandas, npartitions=1)
4909
4910 df = df.assign(new_col=df["a"])
4911
4912 assert df.compute()["a"].dtypes == "Float64"
4913 assert df.compute()["new_col"].dtypes == "Float64"
4914
4915
4916def test_assign_no_warning_fragmented():

Callers

nothing calls this directly

Calls 2

assignMethod · 0.80
computeMethod · 0.45

Tested by

no test coverage detected