parameters: (self, y)
return_statement: return y
docstring: Fit label encoder and return encoded labels
  
          Parameters
          ----------
          y : array-like of shape [n_samples]
              Target values.
  
          Returns
          -------
          y : array-like of shape [n_samples]
docstring_summary: Fit label encoder and return encoded labels
docstring_tokens: Fit label encoder and return encoded labels
function: def fit_transform(self, y):
          """Fit label encoder and return encoded labels
  
          Parameters
          ----------
          y : array-like of shape [n_samples]
              Target values.
  
          Returns
          -------
          y : array-like of shape [n_samples]
          """
          y = column_or_1d(y, warn=True)
          _check_numpy_unicode_bug(y)
          self.classes_, y = np.unique(y, return_inverse=True)
          return y
function_tokens: def fit_transform ( self , y ) : y = column_or_1d ( y , warn = True ) _check_numpy_unicode_bug ( y ) self . classes_ , y = np . unique ( y , return_inverse = True ) return y