[//]: # (title: insert)
Inserts new column at specific position in [`DataFrame`](DataFrame.md).
```text
insert
(columnName) { rowExpression } | (column)
.under { parentColumn } | .after { column } | .at(position)
rowExpression: DataRow.(DataRow) -> Value
```
Similar to [add](add.md), but supports column positioning.
Create new column based on existing columns and insert it into [`DataFrame`](DataFrame.md):
**Related operations**: [](insertReplace.md)
```kotlin
df.insert("year of birth") { 2021 - age }.after { age }
```
```kotlin
df.insert("year of birth") { 2021 - "age"() }.after("age")
```
Insert previously created column:
```kotlin
val score by columnOf(4, 5, 3, 5, 4, 5, 3)
df.insert(score).at(2)
```