class_docstr: Wrapper for ``pandas.Series`` to support ``sklearn.preprocessing``
class_docstr_tok: ["Wrapper","for","``","pandas.Series","``","to","support","``","sklearn.preprocessing","``"]
code: def to_frame(self, name=None):
      # ported from pandas 0.16
      from pandas_ml.core.frame import ModelFrame
  
      if name is None:
          df = ModelFrame(self)
      else:
          df = ModelFrame({name: self})
  
      return df
  
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 8 for calling the ModelSeries obj's underlying member method code with example usage: obj.to_frame(name) and returns: df