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

Function _can_definitely_zero_copy

python/pyarrow/pandas_compat.py:649–655  ·  view source on GitHub ↗
(ser)

Source from the content-addressed store, hash-verified

647 return result
648
649 def _can_definitely_zero_copy(ser):
650 if isinstance(ser.dtype, np.dtype):
651 arr = ser.values
652 return (isinstance(arr, np.ndarray) and
653 arr.flags.contiguous and
654 issubclass(arr.dtype.type, np.integer))
655 return False
656
657 if nthreads == 1:
658 arrays = [convert_column(c, f)

Callers 1

dataframe_to_arraysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected