code: def _swapvals(x, i):
      """swap values from column 0 in ``x`` with column i
  
      Args:
        x (ndarray): an array of shape ``(npts, ndim)``
        i (int): index of column to swap with column 0
  
      Returns:
        an array where the indicated columns have been swapped
      """
      x = np.asarray(x).T
      x[[0, i]] = x[[i, 0]]
      return x.T
  
imports: from mystic.math import _rbf
label_desc: Use image node_id 14 for calling a global function with example usage: _swapvals(x, i) and returns: x