PandasRegistry#
- class liesel_gam.PandasRegistry(data, na_action='error', prefix_names_by='')[source]#
Bases:
objectRegistry for managing variables and their transformations.
Handles conversion from pandas.DataFrame to liesel.Var objects, applies transformations, and caches results for efficiency.
Methods
Get a variable and ensure it is boolean.
Get a derived version of the variable.
Get a centered version of the variable: x - mean(x).
Get dummy matrix for a categorical column using standard dummy coding.
Get a standardized version of the variable: (x - mean(x)) / std(x).
Get a variable and ensure it is categorical.
Get a variable and ensure it is numeric.
Get or create a liesel Var for a data column.
Get an observed variable.
Check if a variable is boolean.
Check if a variable is categorical.
Check if a variable is numeric.
Attributes