Data Preprocessing
Definition
Data preprocessing brings raw data reproducibly into a form that is suitable for analysis or machine learning.
Depending on the task, preprocessing involves cleaning, imputation, scaling, normalization, coding and transformation. Steps can take place before or within a model pipeline. Learned parameters must only come from the respective training data.
Simply explained
Before a model learns, inconsistent information is ordered, missing values are treated and sizes are brought into a comparable form.
Why it matters in practice
Appropriate preprocessing improves technical processability and comparability. It cannot conjure up errors and must be checked together with data quality and objectives.
Example from business
Missing age values are imputed according to a defined rule, categories are one-hot-coded and numerical characteristics are scaled with parameters determined on training data.
Limits and pitfalls
- Adjust transformations before the train test split, use test data for parameter selection or remove outliers without technical examination. Data cleanup and feature engineering overlap, but are not identical.
Origin & history
Preprocessing has been a central step since statistics and machine learning. Libraries today bundle transformations into reproducible pipelines.
Use in mid-sized companies
- SMEs document each step, preserve raw data and compare impacts on the model and subgroups. A pipeline reduces leakage risks but does not completely prevent them.
Frequently asked questions
When is it fitting?
Exclusively on the training dataset or training fold. Is scaling always necessary? No, depends on the model. Is preprocessing the same as cleaning? Cleaning is a possible part of it.
Sources
- „Preprocessing data“ (Abruf 06.10.2026) · scikit-learn, „Preprocessing data“ (Abruf 06.10.2026)
Source verification: 10/10/2026. Definition and documented classification cross-checked; examples describe possible applications.
Editorially reviewed on: