Target encoding, also known as mean encoding, is a method used in machine learning to transform categorical data. Categorical data are pieces of information that are divided into groups or categories. For instance, a list of different types of animals