PandasRegistry.get_calc_centered()

PandasRegistry.get_calc_centered()#

PandasRegistry.get_calc_centered(name, var_name=None)[source]#

Get a centered version of the variable: x - mean(x).

note, mean(x) is computed from the original data and cached.

Parameters:
  • name (str) – Column name in the data

  • var_name (str | None, default: None) – Custom name for the resulting variable

Return type:

Var

Returns:

liesel.Var object with centered values