def _sanitize_values(arr):
 if hasattr(arr, 'values'):
  arr = arr.values
 else:
  if is_scalar(arr):
   arr = [arr]
  if isinstance(arr, np.ndarray):
   pass
  elif (is_list_like(arr) and (len(arr) > 0)):
   arr = _possibly_convert_platform(arr)
  else:
   arr = np.asarray(arr)
 return arr

def _sanitize_values ( arr ) : if hasattr ( arr , 'values' ) : arr = arr . values else : if is_scalar ( arr ) : arr = [ arr ] if isinstance ( arr , np . ndarray ) : pass elif ( is_list_like ( arr ) and ( len ( arr ) > 0 ) ) : arr = _possibly_convert_platform ( arr ) else : arr = np . asarray ( arr ) return arr
return an ndarray for our input .