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

Method test_empty_arrays

python/pyarrow/tests/test_pandas.py:3050–3057  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3048 _check_pandas_roundtrip(df)
3049
3050 def test_empty_arrays(self):
3051 for dtype_str, pa_type in self.type_pairs:
3052 if (Version(pd.__version__) >= Version("3.0.0") and
3053 pa_type == pa.string()):
3054 # PyArrow backed string dtype are set by default
3055 dtype_str = 'str'
3056 arr = np.array([], dtype=np.dtype(dtype_str))
3057 _check_array_roundtrip(arr, type=pa_type)
3058
3059 def test_non_threaded_conversion(self):
3060 _non_threaded_conversion()

Callers

nothing calls this directly

Calls 5

VersionClass · 0.90
_check_array_roundtripFunction · 0.85
dtypeMethod · 0.80
stringMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected