If we want to find missing values positions in a vector, we can use which and is.na functions in R.
a=c(1,2,3,NA,5,6,NA)
positions=which(is.na(a))
How can we find missing values positions in python?
a=[1,2,3,np.nan,5,6,np.nan]
positions=pd.isnull(a)
Here I can get true or false. But I want to find missing values positions.
Thanks in advance.