pitrou commented on code in PR #37822:
URL: https://github.com/apache/arrow/pull/37822#discussion_r1344279839
##########
python/pyarrow/pandas_compat.py:
##########
@@ -608,7 +608,7 @@ def _can_definitely_zero_copy(arr):
arr.flags.contiguous and
issubclass(arr.dtype.type, np.integer))
- if nthreads == 1:
+ if nthreads == 1 or not is_threading_enabled():
Review Comment:
Instead, why not fix the `nthreads` initialization above?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]