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

Function test_to_numpy_dictionary

python/pyarrow/tests/test_array.py:280–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278
279@pytest.mark.numpy
280def test_to_numpy_dictionary():
281 # ARROW-7591
282 arr = pa.array(["a", "b", "a"]).dictionary_encode()
283 expected = np.array(["a", "b", "a"], dtype=object)
284 np_arr = arr.to_numpy(zero_copy_only=False)
285 np.testing.assert_array_equal(np_arr, expected)
286
287
288@pytest.mark.pandas

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected