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

Function _check_array_from_pandas_roundtrip

python/pyarrow/tests/test_pandas.py:168–171  ·  view source on GitHub ↗
(np_array, type=None)

Source from the content-addressed store, hash-verified

166
167
168def _check_array_from_pandas_roundtrip(np_array, type=None):
169 arr = pa.array(np_array, from_pandas=True, type=type)
170 result = arr.to_pandas()
171 npt.assert_array_equal(result, np_array)
172
173
174class TestConvertMetadata:

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected