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

   ExSent from my iPhoneOn Apr 8, 2023, at 4:57 PM, Randolf Scholz ***@***.***> 
wrote:
   
   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.
   
   It's not about what is acceptable as a scalar. It's about which scalars 
should be considered Truthy and Falsey. In python the convention is:
   
   Boolean/Integer/Float/Complex: 0 → False, other →True
   Container-Types (string/list/tuple): same as bool(len(obj))
   
   For other types (dates, timestamps, etc.) I'm not sure a boolean conversion 
makes sense.
   
   —Reply to this email directly, view it on GitHub, or unsubscribe.You are 
receiving this because you were mentioned.Message ID: ***@***.***>


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