> For the complete documentation index, see [llms.txt](https://george-jen.gitbook.io/data-science-and-apache-spark/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://george-jen.gitbook.io/data-science-and-apache-spark/ml-transformer.md).

# ML Transformer

### Transformer:

A Transformer is an algorithm which can transform one DataFrame into another DataFrame. E.g., an ML model is a Transformer which transforms a DataFrame with features into a DataFrame with predictions.

![](https://2100080250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1PNTHVApkPePuMdTu3%2F-M2l4NvDmy2BfmmEg-4P%2F-M2lOnrsr_mJnM-DBfhq%2Ftransformer.jpg?alt=media\&token=2cea92d3-2c13-4e2f-873e-6e78e64b2491)

Keyword of a transformer is method used: ***transform***
