dianaclarke commented on a change in pull request #8314:
URL: https://github.com/apache/arrow/pull/8314#discussion_r498378619



##########
File path: python/pyarrow/pandas_compat.py
##########
@@ -470,7 +470,7 @@ def _get_range_index_descriptor(level):
     # public start/stop/step attributes added in pandas 0.25.0
     return {
         'kind': 'range',
-        'name': level.name,
+        'name': str(level.name) if level.name else None,

Review comment:
       Or perhaps `name` should be coerced to a string on `RangeIndex` 
instantiation? Perhaps there are other places where a `name` that's something 
like `np.int64(6)` might be problematic.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to