I have a 2-D array which contains lots of nans. Each column has 244 not nan float number when calculating the MA of each column, the function gives the correct result