parameters: (a, chars=None)
return_statement: return _vec_string(a_arr, a_arr.dtype, 'strip', _clean_args(chars))
docstring: For each element in `a`, return a copy with the leading and
      trailing characters removed.
  
      Calls `str.strip` element-wise.
  
      Parameters
      ----------
      a : array-like of str or unicode
  
      chars : str or unicode, optional
         The `chars` argument is a string specifying the set of
         characters to be removed. If omitted or None, the `chars`
         argument defaults to removing whitespace. The `chars` argument
         is not a prefix or suffix; rather, all combinations of its
         values are stripped.
  
      Returns
      -------
      out : ndarray
          Output array of str or unicode, depending on input type
  
      See also
      --------
      str.strip
  
      Examples
      --------
      >>> c = np.array(['aAaAaA', '  aA  ', 'abBABba'])
      >>> c
      array(['aAaAaA', '  aA  ', 'abBABba'], dtype='<U7')
      >>> np.char.strip(c)
      array(['aAaAaA', 'aA', 'abBABba'], dtype='<U7')
      >>> np.char.strip(c, 'a') # 'a' unstripped from c[1] because whitespace leads
      array(['AaAaA', '  aA  ', 'bBABb'], dtype='<U7')
      >>> np.char.strip(c, 'A') # 'A' unstripped from c[1] because (unprinted) ws trails
      array(['aAaAa', '  aA  ', 'abBABba'], dtype='<U7')
docstring_summary: For each element in `a`, return a copy with the leading and
      trailing characters removed.
docstring_tokens: For each element in a return a copy with the leading and trailing characters removed .
function: def strip(a, chars=None):
      """
      For each element in `a`, return a copy with the leading and
      trailing characters removed.
  
      Calls `str.strip` element-wise.
  
      Parameters
      ----------
      a : array-like of str or unicode
  
      chars : str or unicode, optional
         The `chars` argument is a string specifying the set of
         characters to be removed. If omitted or None, the `chars`
         argument defaults to removing whitespace. The `chars` argument
         is not a prefix or suffix; rather, all combinations of its
         values are stripped.
  
      Returns
      -------
      out : ndarray
          Output array of str or unicode, depending on input type
  
      See also
      --------
      str.strip
  
      Examples
      --------
      >>> c = np.array(['aAaAaA', '  aA  ', 'abBABba'])
      >>> c
      array(['aAaAaA', '  aA  ', 'abBABba'], dtype='<U7')
      >>> np.char.strip(c)
      array(['aAaAaA', 'aA', 'abBABba'], dtype='<U7')
      >>> np.char.strip(c, 'a') # 'a' unstripped from c[1] because whitespace leads
      array(['AaAaA', '  aA  ', 'bBABb'], dtype='<U7')
      >>> np.char.strip(c, 'A') # 'A' unstripped from c[1] because (unprinted) ws trails
      array(['aAaAa', '  aA  ', 'abBABba'], dtype='<U7')
  
      """
      a_arr = numpy.asarray(a)
      return _vec_string(a_arr, a_arr.dtype, 'strip', _clean_args(chars))
function_tokens: def strip ( a , chars = None ) : a_arr = numpy . asarray ( a ) return _vec_string ( a_arr , a_arr . dtype , 'strip' , _clean_args ( chars ) )