class_docstr: Base class for ``ModelFrame`` and ``ModelFrame``
class_docstr_tok: ["Base","class","for","``","ModelFrame","``","and","``","ModelFrame","``"]
code: def fit(self, estimator, *args, **kwargs):
      mapped = self._get_method_mapper(estimator, "fit")
      if mapped is not None:
          result = mapped(self, estimator, *args, **kwargs)
          # save estimator when succeeded
          self.estimator = estimator
          return result
      return self._call(estimator, "fit", *args, **kwargs)
  
imports: import warnings
  import pandas.compat
  import pandas_ml.misc
  from pandas_ml.compat import Appender
label_desc: Use image node_id 4 for calling the ModelTransformer obj's underlying member method code with example usage: obj.fit(estimator) and returns: self, result