amol- commented on code in PR #41904:
URL: https://github.com/apache/arrow/pull/41904#discussion_r1636248353
##########
python/pyarrow/types.pxi:
##########
@@ -149,14 +154,14 @@ def _is_primitive(Type type):
def _get_pandas_type(arrow_type, coerce_to_ns=False):
cdef Type type_id = arrow_type.id
- if type_id not in _pandas_type_map:
+ if type_id not in _get_pandas_type_map():
Review Comment:
Might `functools.cache` be enough here? To avoid dealing with global data?
Or are you concerned about the impact on first execution?
--
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]