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

Function test_array_to_pandas_roundtrip

python/pyarrow/tests/test_pandas.py:3408–3411  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

3406
3407@h.given(past.arrays(past.pandas_compatible_types))
3408def test_array_to_pandas_roundtrip(arr):
3409 s = arr.to_pandas()
3410 restored = pa.array(s, type=arr.type, from_pandas=True)
3411 assert restored.equals(arr)
3412
3413
3414# ----------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected