You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "zfoobar (via GitHub)" <gi...@apache.org> on 2023/04/08 22:13:25 UTC

[GitHub] [arrow] zfoobar commented on issue #34987: `bool(pa.scalar(False))` evaluates to `True`

zfoobar commented on issue #34987:
URL: https://github.com/apache/arrow/issues/34987#issuecomment-1500987373

   False is a valid value for a Boolean Scalar in this context, so it won't return 0, it will return an object specialized as boolean. 
   
   I guess the question would be: what wouldn't be acceptable to pyarrow as a scalar? Most of the types return scalar objects - including list, tuple, strings, etc.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org