Here is the code:
bad_array = pa.array([5.25,5.11.7.1,3.111,-1.2])
good_array = pa.array([5.25,5.11.7.1,3.111,2.4])
array = bad_array
boolean_mask = pc.less(array, pa.scalar(0))
boolean_mask.true_count
In attempting to return the “true_count” of the boolean array, the kernel dies. The “false_count” works fine, however. Very strange.
I previously assumed the problem was due to the size of the data I was attempting to process, but then I tried to run a test on these very small arrays and had the same error.
Any ideas?
Thanks.
New contributor
cosmic_ocean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.