> ## Documentation Index
> Fetch the complete documentation index at: https://aidflow.aigensys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CatEncoderWorker.transform

**def CatEncoderWorker.transform**(self, data, subset=None) [\[source\]](https://github.com/aigensys-labs/aidflow/blob/main/AID/\TRUENAS\aig_modeling_Products\AID\1_0_Lib\AID\data\encode\cat_encoder.py#L483)

Apply fitted category mappings to new data.

Maps each categorical feature to its merged (post-MBS)
category values using the learned encoding maps.

#### Parameters

**`data`** : *`pDF`*
New data containing the original categorical features.

**`subset`** : *`list`*
Specific features to process and return.\
Default = None: all trained features.

#### Returns

*`CatEncoderResult`*
Transformed data + feature lineage metadata.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.