<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabularData",
  "identifier" : "/documentation/TabularData/DataFrame/Row",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData0B5FrameV3RowV"
  },
  "title" : "DataFrame.Row"
}
-->

# DataFrame.Row

A single row within a data frame.

```
struct Row
```

## Topics

### Inspecting a row

[`var count: Int`](/documentation/TabularData/DataFrame/Row/count)

The number of columns in the row.

[`let index: Int`](/documentation/TabularData/DataFrame/Row/index)

The row’s index in the underlying data frame.

[`var base: DataFrame`](/documentation/TabularData/DataFrame/Row/base)

The row’s underlying data frame.

### Accessing elements

[`subscript(Int) -> Any?`](/documentation/TabularData/DataFrame/Row/subscript(_:)-5tsj0)

Accesses a value at a column index.

[`subscript(String) -> Any?`](/documentation/TabularData/DataFrame/Row/subscript(_:)-2v7qz)

Accesses a value in the row you select by a column name.

[`subscript<T>(String, T.Type) -> T?`](/documentation/TabularData/DataFrame/Row/subscript(_:_:)-7gpc3)

Accesses a value in the row you select by a column name and type.

[`subscript<T>(ColumnID<T>) -> T?`](/documentation/TabularData/DataFrame/Row/subscript(_:)-9o424)

Accesses a value in the row you select by a column identifier.

[`subscript<T>(Int, T.Type) -> T?`](/documentation/TabularData/DataFrame/Row/subscript(_:_:)-1o38p)

Accesses a value in the row you select by a column index and type.

### Describing a row

[`var description: String`](/documentation/TabularData/DataFrame/Row/description)

A text representation of the row.

[`var debugDescription: String`](/documentation/TabularData/DataFrame/Row/debugDescription)

A text representation of the row suitable for debugging.

[`var customMirror: Mirror`](/documentation/TabularData/DataFrame/Row/customMirror)

A mirror that reflects the row.

[`func description(options: FormattingOptions) -> String`](/documentation/TabularData/DataFrame/Row/description(options:))

A text representation of the row.

### Comparing two rows

[`static func == (DataFrame.Row, DataFrame.Row) -> Bool`](/documentation/TabularData/DataFrame/Row/==(_:_:))

Returns a Boolean that indicates whether the rows are equal.

### Hashing a row

[`func hash(into: inout Hasher)`](/documentation/TabularData/DataFrame/Row/hash(into:))

Hashes the essential components of the row by feeding them into a hasher.

### Retrieving an index

[`var startIndex: Int`](/documentation/TabularData/DataFrame/Row/startIndex)

The index of the initial column in the row.

[`var endIndex: Int`](/documentation/TabularData/DataFrame/Row/endIndex)

The index of the final column in the row.

[`func index(before: Int) -> Int`](/documentation/TabularData/DataFrame/Row/index(before:))

Returns the column index immediately after a column index in the row.

[`func index(after: Int) -> Int`](/documentation/TabularData/DataFrame/Row/index(after:))

Returns the column index immediately before a column index in the row.

### Default Implementations

[Collection Implementations](/documentation/TabularData/DataFrame/Row/Collection-Implementations)

[CustomDebugStringConvertible Implementations](/documentation/TabularData/DataFrame/Row/CustomDebugStringConvertible-Implementations)

[CustomReflectable Implementations](/documentation/TabularData/DataFrame/Row/CustomReflectable-Implementations)

[CustomStringConvertible Implementations](/documentation/TabularData/DataFrame/Row/CustomStringConvertible-Implementations)

[Equatable Implementations](/documentation/TabularData/DataFrame/Row/Equatable-Implementations)

[Hashable Implementations](/documentation/TabularData/DataFrame/Row/Hashable-Implementations)

[RandomAccessCollection Implementations](/documentation/TabularData/DataFrame/Row/RandomAccessCollection-Implementations)

## Relationships

### Conforms To

[`RandomAccessCollection`](/documentation/Swift/RandomAccessCollection)

[`Collection`](/documentation/Swift/Collection)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Escapable`](/documentation/Swift/Escapable)

[`Sequence`](/documentation/Swift/Sequence)

[`Hashable`](/documentation/Swift/Hashable)

[`BidirectionalCollection`](/documentation/Swift/BidirectionalCollection)

[`MutableCollection`](/documentation/Swift/MutableCollection)

[`Copyable`](/documentation/Swift/Copyable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomReflectable`](/documentation/Swift/CustomReflectable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)