class_docstr: Pandas dataframe class with a simplified selection function
docstr: Same as select, but drops the columns used for selection
docstr_tok: ["Same","as","select",",","but","drops","the","columns","used","for","selection"]
code: def select_and_drop(
      self,
      **kwargs: tp.Union[
          str, tp.Sequence[str], tp.Callable[[tp.Any], bool]
      ],
  ) -> "Selector":
      """Same as select, but drops the columns used for selection"""
      df = self.select(**kwargs)
      columns = [x for x in df.columns if x not in kwargs]
      return Selector(df.loc[:, columns])
  
file_path: nevergrad/nevergrad/benchmark/utils.py
imports: from collections import abc
  import numpy
  import pandas
  import nevergrad.common.typing
  from nevergrad.common import testing
label_desc: Use image node_id 4 for calling the Selector obj's underlying member method code with example usage: obj.select_and_drop() and returns: Selector