CONAN._classes.load_lightcurves.rescale_data_columns
====================================================

.. py:method:: CONAN._classes.load_lightcurves.rescale_data_columns(method='med_sub', columns='all', verbose=True)

   Function to rescale the data columns of the lightcurves. This can be important when
   decorrelating the data with polynomials. The operation is not performed on columns 0,1,2.
   It is only performed on columns whose values do not span zero. Function can only be run once
   on the loaded datasets but can be reset by running `load_lightcurves()` again.

   :param method: can be one of ["med_sub", "rs0to1", "rs-1to1","None"] which subtracts the median,
                  rescales t0 [0-1], rescales to [-1,1], or does nothing, respectively.
                  The default is "med_sub" which subtracts the median from each column.
   :type method: str
   :param columns: list of columns to rescale. default is "all" to consider rescaling all columns (except columns 0,1,2).
                   otherwise, list of column integer number up to 8 e.g columns = [3,4,6,7]
   :type columns: list or "all";

   .. attribute:: _rescaled_data



      flag : bool;
          True if the data columns have been rescaled.
      config : list;
          list of methods used for rescaling each lightcurve.

      :type: SimpleNamespace;

