# inferType

> For the complete documentation index, see [llms.txt](https://kotlin.github.io/dataframe/llms.txt).

Changes the type of the selected columns based on the runtime values stored in these columns. The resulting type of the column will be the nearest common supertype of all column values.

API reference: [inferType](https://kotlin.github.io/dataframe/api-docs/core/org.jetbrains.kotlinx.dataframe.api/infer-type.html)

```TEXT
inferType [ { columns } ]
```

See [column selectors](columnselectors.html) for how to select the columns for this operation.

