class_docstr: A way to represent a set of dot chained operations on an object without actually running them.
      
class_docstr_tok: ["A","way","to","represent","a","set","of","dot","chained","operations","on","an","object","without","actually","running","them","."]
docstr: Applies all our ops to the given object.
          
docstr_tok: ["Applies","all","our","ops","to","the","given","object","."]
code: def apply(self, obj):
      """Applies all our ops to the given object."""
      for o in self._ops:
          op, args, kwargs = o
          if args is not None:
              obj = getattr(obj, op)(*args, **kwargs)
          else:
              obj = getattr(obj, op)
      return obj
  
imports: import copy
  import os
  import re
  import sys
  from contextlib import contextmanager
  import numpy
  import pandas
  import scipy.special
  import sklearn
label_desc: Use image node_id 2 for calling the OpChain obj's underlying member method code with example usage: obj.apply(obj) and returns: obj