---
title: "callAsFunction(_:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/tabulartransformer/callasfunction(_:eventhandler:)"
---

# callAsFunction(_:eventHandler:)

Performs the transformation on a single input.

## Declaration

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

## Parameters

- `input`: The transformer input.
- `eventHandler`: An event handler.

## Return Value

Return Value An output produced by applying the transformer to the input.
