original_docstring:  Remove the outliers from a provided list.
  
          Removes data more than 1 Standard Deviation from the mean.
  
          Parameters
          ----------
          data: :class:`numpy.ndarray`
              The data to remove the outliers from
  
          Returns
          -------
          :class:`numpy.ndarray`
              The data with outliers removed
          
docstring: Remove the outliers from a provided list.
  Removes data more than 1 Standard Deviation from the mean.
  
  Parameters
  
  :class:`numpy.ndarray`
  The data to remove the outliers from
  
  Returns
docstring_tokens: Remove the outliers from a provided list . Removes data more than 1 Standard Deviation from the mean . Parameters : class : ` numpy . ndarray ` The data to remove the outliers from Returns
code: def _flatten_outliers(cls, data):
          """ Remove the outliers from a provided list.
  
          Removes data more than 1 Standard Deviation from the mean.
  
          Parameters
          ----------
          data: :class:`numpy.ndarray`
              The data to remove the outliers from
  
          Returns
          -------
          :class:`numpy.ndarray`
              The data with outliers removed
          """
          logger.debug("Flattening outliers: %s", data.shape)
          mean = np.mean(data)
          limit = np.std(data)
          logger.debug("mean: %s, limit: %s", mean, limit)
          retdata = np.where(abs(data - mean) < limit, data, mean)
          logger.debug("Flattened outliers")
          return retdata
code_tokens: def _flatten_outliers ( cls , data ) : logger . debug ( "Flattening outliers: %s" , data . shape ) mean = np . mean ( data ) limit = np . std ( data ) logger . debug ( "mean: %s, limit: %s" , mean , limit ) retdata = np . where ( abs ( data - mean ) < limit , data , mean ) logger . debug ( "Flattened outliers" ) return retdata
short_docstring: Remove the outliers from a provided list.
short_docstring_tokens: Remove the outliers from a provided list .
comment: """ Remove the outliers from a provided list.
  
          Removes data more than 1 Standard Deviation from the mean.
  
          Parameters
          ----------
          data: :class:`numpy.ndarray`
              The data to remove the outliers from
  
          Returns
          -------
          :class:`numpy.ndarray`
              The data with outliers removed
          """