Check to see if instances of `x == np.nan` should be replaced with `np.isnan(x)`
Check to see if instances of
x == np.nanshould be replaced withnp.isnan(x)