Tweeted By @python_tip
#NumPy has many function ignoring NaN values (the list is 👇👇👇)
— Daily Python Tip (@python_tip) February 17, 2020
>>> import numpy as np
>>>
>>> np.nanvar([1,2,3])
0.6666666666666666
>>> np.nanvar([1,2,3,np.NaN])
0.6666666666666666
>>> np.var([1,2,3,np.NaN])
nan pic.twitter.com/aMxHLGMZQ7