jorisvandenbossche commented on pull request #7519:
URL: https://github.com/apache/arrow/pull/7519#issuecomment-652245303


   > the null equality tests look like a nuisance for regular Python usage 
(`__eq__` should return a boolean)
   
   The reason that those scalars return null on equality check and not 
True/False, it to ensure consistent behaviour between arrays and scalars (to 
ensure `(arr1 == arr2)[0]` and `arr1[0] == arr2[0]`gives the same answer). 
   Our element-wise equality propagates null, and so IMO also the scalar should 
do.


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to