---
title: shape
framework: tabulardata
role: symbol
role_heading: Instance Property
path: tabulardata/dataframeprotocol/shape
---

# shape

The number or rows and columns of the data frame type.

## Declaration

```swift
var shape: (rows: Int, columns: Int) { get }
```

## Parameters

- `rows`: The number of rows in the data frame type.
- `columns`: The number of columns in the data frame type.

## See Also

### Inspecting a Data Frame Type

- [isEmpty](tabulardata/dataframeprotocol/isempty.md)
- [columns](tabulardata/dataframeprotocol/columns.md)
- [ColumnType](tabulardata/dataframeprotocol/columntype.md)
- [rows](tabulardata/dataframeprotocol/rows.md)
- [DataFrame.Rows](tabulardata/dataframe/rows-swift.struct.md)
- [base](tabulardata/dataframeprotocol/base.md)
