mikelui commented on code in PR #34730:
URL: https://github.com/apache/arrow/pull/34730#discussion_r1167555579


##########
python/pyarrow/src/arrow/python/arrow_to_pandas.cc:
##########
@@ -911,6 +877,122 @@ Status ConvertMap(PandasOptions options, const 
ChunkedArray& data,
   return Status::OK();
 }
 
+// A more helpful error message around TypeErrors that may stem from 
unhashable keys
+Status CheckMapAsPydictsError() {

Review Comment:
   Manually tested this by remove the `with pytest.raises(TypeError):` in my 
non-hashable key test, and got:
   
   ```
   E   TypeError: unhashable type: 'numpy.ndarray'. If keys are not hashable, 
then you must use `maps_as_pydicts=False`
   ```



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