---
title: summary()
framework: tabulardata
role: symbol
role_heading: Instance Method
path: tabulardata/anycolumnslice/summary()
---

# summary()

Generates a categorical summary of the column slice’s elements.

## Declaration

```swift
func summary() -> AnyCategoricalSummary
```

## Discussion

Discussion The method tries to cast the the untyped column slice to a typed column slice before summarizing. Generating a summary for a typed column is faster and more efficient than for an untyped column.
