class_docstr: Wrapper for ``pandas.Series`` to support ``sklearn.preprocessing``
class_docstr_tok: ["Wrapper","for","``","pandas.Series","``","to","support","``","sklearn.preprocessing","``"]
docstr: Wrapper for transform methods
docstr_tok: ["Wrapper","for","transform","methods"]
code: def _wrap_transform(self, transformed, columns=None):
      """
      Wrapper for transform methods
      """
      if len(transformed.shape) == 2:
          if util._is_1d_harray(transformed) or util._is_1d_varray(
              transformed
          ):
              transformed = transformed.flatten()
          else:
              from pandas_ml.core.frame import ModelFrame
  
              return ModelFrame(transformed, index=self.index)
      return self._constructor(
          transformed, index=self.index, name=self.name
      )
  
file_path: pandas-ml/pandas_ml/core/series.py
imports: import pandas
  import pandas_ml.skaccessors
  import pandas_ml.util
  from pandas_ml.compat import Appender, cache_readonly
  from pandas_ml.core.generic import ModelTransformer, _shared_docs
label_desc: Use image node_id 3 for calling the ModelSeries obj's underlying member method code with example usage: obj._wrap_transform(transformed, columns) and returns: self, ModelFrame