3 ms·
I get my averages from sum(list_of_bools) / len(list_of_bools) and np_array_of_bools.mean() There is probably a more correct way, but I enjoy it.
by wodenokoto 7y ago
I get my averages from
sum(list_of_bools) / len(list_of_bools)
and
np_array_of_bools.mean()
There is probably a more correct way, but I enjoy it.