AlenkaF commented on code in PR #38040:
URL: https://github.com/apache/arrow/pull/38040#discussion_r1347578569


##########
python/pyarrow/pandas_compat.py:
##########
@@ -36,6 +36,17 @@
 from pyarrow.lib import _pandas_api, frombytes  # noqa
 
 
+try:
+    _np_unicode = np.unicode_
+except AttributeError:
+    _np_unicode = np.str_
+
+try:
+    _np_sctypes = np.sctypes
+except AttributeError:
+    from numpy.core.numerictypes import sctypes as _np_sctypes

Review Comment:
   Thank you for contributing, much appreciated!
   
   One question, is the reason for the Try Except older Python version (or 
numpy?) or can we just replace `np.unicode_` with `np.str_` and `np.sctypes` 
with `sctypes` (like `np.NaN` with `np.nan`)?



-- 
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]

Reply via email to