Method to return mean of a list or equivalent array with NaN values
Args:
ls: (list), list of values
Returns:
(numpy array), array containing mean of list of values or NaN if list has no values