<!--
{
  "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/RowGroupingProtocol/quantiles(_:quantile:order:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData19RowGroupingProtocolPAAE9quantiles_8quantile5orderAA0B5FrameVAA8ColumnIDVyqd__G_qd__AA5OrderOSgtSBRd__lF"
  },
  "title" : "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.

```
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> Precondition: Quantile must be between 0.0 and 1.0.

---

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)