class_docstr: collection of descriptive statistical methods for time series
  
      
class_docstr_tok: ["collection","of","descriptive","statistical","methods","for","time","series"]
code: def detrend(self, order=1):
      from . import tsatools
  
      xdetrended = tsatools.detrend(self.data, order=order)
      return self.__class__(
          xdetrended, self.label, self.name + "_detrended"
      )
  
file_path: statsmodels/statsmodels/tsa/descriptivestats.py
imports: import numpy
  from .None import stattools
label_desc: Use image node_id 3 for calling the TsaDescriptive obj's underlying member method code with example usage: obj.detrend(order) and returns: self