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

# means(_:_:order:)

Generates a data frame that contains the average mean of each group’s rows along a column you select
by name.

```
func means<N>(_ columnName: String, _ type: N.Type, order: Order? = nil) -> DataFrame where N : FloatingPoint
```

## Parameters

`columnName`

The name of a column.

`type`

The type of the column.

`order`

A sorting order the method uses to sort the data frame by its mean column.

---

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)