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

# shape

The number of rows and columns in the slice.

## Declaration

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

## Parameters

- `rows`: The number of rows in the slice.
- `columns`: The number of columns in the slice.

## See Also

### Inspecting a Slice

- [columns](tabulardata/dataframe/slice/columns.md)
- [rows](tabulardata/dataframe/slice/rows.md)
- [base](tabulardata/dataframe/slice/base.md)
