---
title: "preprocessed(from:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/preprocessingtabularestimator/preprocessed(from:eventhandler:)"
---

# preprocessed(from:eventHandler:)

Preprocesses a data frame of examples.

## Declaration

```swift
func preprocessed(from input: DataFrame, eventHandler: EventHandler? = nil) async throws -> DataFrame
```

## Parameters

- `input`: A data frame of examples.
- `eventHandler`: An event handler.

## Return Value

Return Value The preprocessed examples.

## See Also

### Preprocesing and fitting

- [fitted(to:eventHandler:)](createmlcomponents/preprocessingtabularestimator/fitted(to:eventhandler:).md)
- [fitted(toPreprocessed:eventHandler:)](createmlcomponents/preprocessingtabularestimator/fitted(topreprocessed:eventhandler:).md)
- [PreprocessingTabularEstimator.Input](createmlcomponents/preprocessingtabularestimator/input.md)
- [PreprocessingTabularEstimator.Intermediate](createmlcomponents/preprocessingtabularestimator/intermediate.md)
- [PreprocessingTabularEstimator.Output](createmlcomponents/preprocessingtabularestimator/output.md)
- [Transformer](createmlcomponents/transformer.md)
