class_docstr: Accessor to ``sklearn.preprocessing``.
docstr: Call ``sklearn.preprocessing.add_dummy_feature`` using automatic mapping.
  
  - ``X``: ``ModelFrame.data``
docstr_tok: ["Call","``","sklearn.preprocessing.add_dummy_feature","``","using","automatic","mapping",".","-","``","X","``",":","``","ModelFrame.data","``"]
code: def add_dummy_feature(self, value=1.0):
      """
      Call ``sklearn.preprocessing.add_dummy_feature`` using automatic mapping.
  
      - ``X``: ``ModelFrame.data``
      """
      from pandas_ml.core.series import ModelSeries
      from pandas_ml.core.frame import ModelFrame
  
      func = self._module.add_dummy_feature
  
      if isinstance(self._df, ModelSeries):
          data = self._df.to_frame()
          constructor = ModelFrame
      else:
          data = self._data
          constructor = self._constructor
  
      result = func(data.values, value=value)
      result = constructor(result, index=data.index)
      columns = result.columns[: -len(data.columns)].append(
          data.columns
      )
      result.columns = columns
      return result
  
file_path: pandas-ml/pandas_ml/skaccessors/preprocessing.py
imports: import numpy
  from pandas_ml.core.accessor import _AccessorMethods, _attach_methods
  from pandas_ml.compat import _SKLEARN_INSTALLED, is_integer_dtype
label_desc: Use image node_id 2 for calling the PreprocessingMethods obj's underlying member method code with example usage: obj.add_dummy_feature(value) and returns: result