system.kanoa.utilities.translateData
Description
Translates the list of columns of the passed-in dataset into the given local language (kanoaCore).Syntax
translateData(data, colList, locale)- data (pyDataset or basic dataset) - Dataset to be translated.
- colList (List) - List of columns to be translated (empty list if all columns).
- locale (String) - Language to translate to (e.g., 'es').
- data (pyDataset) - Translated dataset.
Code Example
# Example Usage:
translated_dataset = system.kanoa.utilities.translateData(dataset, ['column1', 'column2'], 'es')