class_docstr: Drop rows
  
  Parameters
  ----------
  if_nas
      If True, deletes all rows where there is at leat one NA
  query
      Drops all rows matching the query (passed via pandas.query)
class_docstr_tok: ["Drop","rows","Parameters","--","--","--","--","--","if_nas","If","True",",","deletes","all","rows","where","there","is","at","leat","one","NA","query","Drops","all","rows","matching","the","query","(","passed","via","pandas.query",")"]
code: def transform(self, df, return_summary=False):
      to_delete = pd.Index([])
  
      if self.if_nas:
          to_delete = to_delete.union(_incomplete_cases(df))
  
      if self.query:
          to_delete = to_delete.union(_query(df, self.query))
  
      out = df[~df.index.isin(to_delete)]
  
      return (
          out
          if not return_summary
          else (out, self.transform_summary(df, to_delete))
      )
  
imports: from copy import copy, deepcopy
  import abc
  import inspect
  import importlib
  import itertools
  from collections.abc import Mapping
  import pandas
  from decorator import decorator
  from sklearn_evaluation.exceptions import DataSelectorError
  from sklearn_evaluation.util import map_parameters_in_fn_call
  from sklearn_evaluation.table import Table
label_desc: Use image node_id 2 for calling the RowDrop obj's underlying member method code with example usage: obj.transform(df, return_summary) and returns: unknown