# Get columns

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

API reference: [getColumns](https://kotlin.github.io/dataframe/api-docs/core/org.jetbrains.kotlinx.dataframe.api/get-columns.html)

Get single column by column name:

Properties:

```KOTLIN
df.age
df.name.lastName
```

Strings:

```KOTLIN
df["age"]
df["name"]["firstName"]
```

Get single column by index (starting from 0):

```KOTLIN
df.getColumn(2)
df.getColumnGroup(0).getColumn(1)
```

