docstr: drop_idx is only available if sparse=False
  
  drop_idx is supposed to index into uni
docstr_tok: ["drop_idx","is","only","available","if","sparse=False","drop_idx","is","supposed","to","index","into","uni"]
code: def dummy(self, drop_idx=None, sparse=False, dtype=int):
      """
      drop_idx is only available if sparse=False
  
      drop_idx is supposed to index into uni
      """
      uni = self.uni
      if drop_idx is not None:
          idx = lrange(len(uni))
          del idx[drop_idx]
          uni = uni[idx]
  
      group = self.group
  
      if not sparse:
          return (group[:, None] == uni[None, :]).astype(dtype)
      else:
          return dummy_sparse(self.group_int)
  
imports: from statsmodels.compat.python import lrange, lzip
  import numpy
  import pandas
  import statsmodels.tools.data
  from pandas import Index, MultiIndex
label_desc: Use image node_id 4 for calling the Group obj's underlying member method code with example usage: obj.dummy(drop_idx, sparse, dtype) and returns: unknown, dummy_sparse