def _mean_var(frame, weights=None):
  """
  Compute the (weighted) mean and variance

  :param frame: Single column H2OFrame
  :param weights: optional weights column
  :return: The (weighted) mean and variance
  """
  return frame.mean(), frame.var()