code: def apply(self, func, **kwargs):
          
          import dask
  
          # applies the func lazily
          delayed_call = self.delayed_call
          self.delayed_call = self.dask_obj
          return self.__class__(dask.delayed(func)(delayed_call, **kwargs))
docs: Apply some callable function to the data in this partition.
  
          Note: It is up to the implementation how kwargs are handled. They are
              an important part of many implementations. As of right now, they
              are not serialized.
  
          Args:
              func: The lambda to apply (may already be correctly formatted)
  
          Returns:
               A new `BaseFramePartition` containing the object that has had `func`
               applied to it.