class_docstr: Removes degenerate (constant) columns.
  
  Parameters
  ----------
  drop_degenerate : `bool`, default False
      Whether to drop degenerate columns.
  
  Attributes
  ----------
  drop_cols : `list` [`str`] or None
      Degenerate columns to drop
  keep_cols : `list` [`str`] or None
      Columns to keep
class_docstr_tok: ["Removes","degenerate","(","constant",")","columns",".","Parameters","--","--","--","--","--","drop_degenerate",":","`","bool","`",",","default","False","Whether","to","drop","degenerate","columns",".","Attributes","--","--","--","--","--","drop_cols",":","`","list","`","[","`","str","`","]","or","None","Degenerate","columns","to","drop","keep_cols",":","`","list","`","[","`","str","`","]","or","None","Columns","to","keep"]
code: def __init__(self, drop_degenerate=False):
      # sets params without modification to ensure get_params() works in grid search
      self.drop_degenerate = drop_degenerate
  
      self.drop_cols = None
      self.keep_cols = None
  
file_path: greykite/greykite/sklearn/transform/drop_degenerate_transformer.py
imports: import warnings
  import pandas
  from sklearn.base import BaseEstimator
  from sklearn.base import TransformerMixin
  from sklearn.exceptions import NotFittedError
label_desc: Use image node_id 1 to create a new DropDegenerateTransformer object from inherited base classes: BaseEstimator, TransformerMixin with example: obj = DropDegenerateTransformer(drop_degenerate)