Skip to main content

system.kanoa.utilities.translateData

This function requires KanoaCore module

Description

Translates the list of columns of the passed-in dataset into the given local language (kanoaCore).

Syntax

translateData(data, colList, locale)
  • Parameters
      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').
  • Returns
      data (pyDataset) - Translated dataset.
  • Code Example

    # Example Usage:
    translated_dataset = system.kanoa.utilities.translateData(dataset, ['column1', 'column2'], 'es')