---
title: "quantiles(_:quantile:order:)"
framework: tabulardata
role: symbol
role_heading: Instance Method
path: "tabulardata/rowgroupingprotocol/quantiles(_:quantile:order:)"
---

# quantiles(_:quantile:order:)

Generates a data frame that contains the quantiles of each group’s rows along a column you select by column identifier.

## Declaration

```swift
func quantiles<N>(_ columnID: ColumnID<N>, quantile: N, order: Order? = nil) -> DataFrame where N : BinaryFloatingPoint
```

## Parameters

- `columnID`: A column identifier.
- `quantile`: A number between 0.0 and 1.0 that represents the percentage of the data that lies below the resulting value.
- `order`: A sorting order the method uses to sort the data frame by its third quartile column.

## Discussion

Discussion note: Quantile must be between 0.0 and 1.0.
