'Fit label encoder
Parameters
y : array-like of shape (n_samples,)
Target values.
Returns
self : returns an instance of self.'

def fit(self, y):

    y = column_or_1d(y, warn=True)
    self.classes_ = np.unique(y)
    return self
