A scikit-learn transformer is an estimator that modifies data: scaling, encoding, imputation. It learns its parameters with fit (mean, categories) then applies them with transform; fit_transform chains the two. It is fitted on the training set only.
Example
scaler = StandardScaler().fit(X_train)
X_test_s = scaler.transform(X_test)