I\'d like to calculate the mean of an array in Python in this form:
Matrice = [1, 2, None]
I\'d just like to have my None valu
None
You can also use filter, pass None to it, it will filter non True objects, also 0, :D So, use it when you dont need 0 too.
>>> filter(None,[1, 2, None]) [1, 2]