captest.calcparams.scale

captest.calcparams.scale(data, col=None, factor=1.0, verbose=True)

Multiply a single column by a scalar factor.

Generic unit-conversion / rescaling helper usable in regression_cols calc trees. Primary use in this module is converting PVsyst PrecWat from meters to centimeters with factor=100.

Parameters:
  • data (DataFrame) – Source DataFrame.

  • col (str) – Column name to scale.

  • factor (numeric, default 1.0) – Scalar multiplier applied elementwise to data[col].

  • verbose (bool, default True) – Set to False to suppress the explanatory print message.

Returns:

data[col] * factor indexed like data.index.

Return type:

Series