captest.columngroups.group_columns

captest.columngroups.group_columns(data)

Create a dict of raw column names paired to categorical column names.

Uses multiple type_def formatted dictionaries to determine the type, sub-type, and equipment type for data series of a dataframe. The determined types are concatenated to a string used as a dictionary key with a list of one or more original column names as the paired value.

Parameters:

data (DataFrame) – Data with columns to group.

Returns:

cg

Return type:

ColumnGroups