MCPcopy Create free account
hub / github.com/apache/arrow / test_all_null_category

Function test_all_null_category

python/pyarrow/tests/test_feather.py:437–441  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

435
436@pytest.mark.pandas
437def test_all_null_category(version):
438 # ARROW-1188
439 df = pd.DataFrame({"A": (1, 2, 3), "B": (None, None, None)})
440 df = df.assign(B=df.B.astype("category"))
441 _check_pandas_roundtrip(df, version=version)
442
443
444@pytest.mark.pandas

Callers

nothing calls this directly

Calls 2

assignMethod · 0.80
_check_pandas_roundtripFunction · 0.70

Tested by

no test coverage detected