# Get rows

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

API reference: [getRow](https://kotlin.github.io/dataframe/api-docs/core/org.jetbrains.kotlinx.dataframe.api/get-row.html), [getRowOrNull](https://kotlin.github.io/dataframe/api-docs/core/org.jetbrains.kotlinx.dataframe.api/get-row-or-null.html)

Get single [DataRow](datarow.html) by [index](indexing.html):

```KOTLIN
df[2]
```

[Embedded content](resources/org.jetbrains.kotlinx.dataframe.samples.api.Access.getRowByIndex.html)

Get single [DataRow](datarow.html) by [row condition](datarow.html#row-conditions):

Properties:

```KOTLIN
df.single { age == 45 }
df.first { weight != null }
df.minBy { age }
df.maxBy { name.firstName.length }
df.maxByOrNull { weight }
```

Strings:

```KOTLIN
df.single { "age"<Int>() == 45 }
df.first { it["weight"] != null }
df.minBy("weight")
df.maxBy { "name"["firstName"]<String>().length }
df.maxByOrNull("weight")
```

[Embedded content](resources/org.jetbrains.kotlinx.dataframe.samples.api.Access.getRowByCondition.html)

