<!--
{
  "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/FilledColumn",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData12FilledColumnV"
  },
  "title" : "FilledColumn"
}
-->

# FilledColumn

A view on a column that replaces missing elements with a default value.

```
struct FilledColumn<Base> where Base : OptionalColumnProtocol
```

## Topics

### Inspecting a Column

[`var name: String`](/documentation/TabularData/FilledColumn/name)

The name of the column.

### Finding an Element Index

[`func argmin() -> Base.Index?`](/documentation/TabularData/FilledColumn/argmin())

Returns the index of the element with the lowest value.

[`func argmax() -> FilledColumn<Base>.Index?`](/documentation/TabularData/FilledColumn/argmax())

Returns the index of the element with the highest value.

### Accessing Elements

[`subscript(Base.Index) -> Base.WrappedElement`](/documentation/TabularData/FilledColumn/subscript(_:))

Retrieves an element at a position in the column type.

### Summarizing a Column

[`func summary() -> CategoricalSummary<FilledColumn<Base>.WrappedElement>`](/documentation/TabularData/FilledColumn/summary())

Generates a categorical summary of the filled column’s elements, including default values.

[`func numericSummary() -> NumericSummary<Double>`](/documentation/TabularData/FilledColumn/numericSummary()-3ao8s)

Generates a numeric summary of the integer column’s elements.

[`func numericSummary() -> NumericSummary<Base.WrappedElement>`](/documentation/TabularData/FilledColumn/numericSummary()-86mgh)

Generates a numeric summary of the floating-point column’s elements.

### Getting Statistical Values

[`func sum() -> FilledColumn<Base>.Element`](/documentation/TabularData/FilledColumn/sum()-5836l)

Returns the sum of the integer column’s elements.

[`func sum() -> FilledColumn<Base>.Element`](/documentation/TabularData/FilledColumn/sum()-2805h)

Returns the sum of the floating-point column’s elements.

[`func min() -> FilledColumn<Base>.Element?`](/documentation/TabularData/FilledColumn/min())

Returns the element with the lowest value.

[`func max() -> FilledColumn<Base>.Element?`](/documentation/TabularData/FilledColumn/max())

Returns the element with the highest value.

[`func mean() -> Double?`](/documentation/TabularData/FilledColumn/mean()-8xs60)

Returns the mean average of the integer column’s elements.

[`func mean() -> FilledColumn<Base>.Element?`](/documentation/TabularData/FilledColumn/mean()-jd3v)

Returns the mean average of the floating-point column’s elements.

[`func standardDeviation(deltaDegreesOfFreedom: Int) -> Double?`](/documentation/TabularData/FilledColumn/standardDeviation(deltaDegreesOfFreedom:)-4cofd)

Returns the standard deviation of the integer column’s elements.

[`func standardDeviation(deltaDegreesOfFreedom: Int) -> FilledColumn<Base>.Element?`](/documentation/TabularData/FilledColumn/standardDeviation(deltaDegreesOfFreedom:)-27xnl)

Returns the standard deviation of the floating-point column’s elements.

### Describing a Column

[`var description: String`](/documentation/TabularData/FilledColumn/description)

A mirror that reflects the filled column.

[`var debugDescription: String`](/documentation/TabularData/FilledColumn/debugDescription)

A text representation of the filled column suitable for debugging.

[`func description(options: FormattingOptions) -> String`](/documentation/TabularData/FilledColumn/description(options:))

Generates a string description of the filled column.

### Generating a Column by Combining Two Columns

### Generating a Column by Adding a Value

### Generating a Column by Subtracting a Value

### Generating a Column by Multiplying a Value

### Generating a Column by Dividing a Value

### Comparing a Column with a Value

### Supporting Types

[`typealias Element`](/documentation/TabularData/FilledColumn/Element)

The type of the column’s elements that defines an associated type for the bidirectional collection protocol.

[`typealias WrappedElement`](/documentation/TabularData/FilledColumn/WrappedElement)

The type of the column’s elements that defines an associated type for the optional column protocol.

### Invoking Protocol Methods

  <doc:API-Sequence--FilledColumn>

  <doc:API-Collection--FilledColumn>

  <doc:API-Bidirectional-Collection--FilledColumn>

  <doc:API-Random-Access-Collection--FilledColumn>

### Default Implementations

[CustomStringConvertible Implementations](/documentation/TabularData/FilledColumn/CustomStringConvertible-Implementations)

## Relationships

### Conforms To

[`Copyable`](/documentation/Swift/Copyable)

[`Collection`](/documentation/Swift/Collection)

[`Escapable`](/documentation/Swift/Escapable)

[`ColumnProtocol`](/documentation/TabularData/ColumnProtocol)

[`Sequence`](/documentation/Swift/Sequence)

[`Sendable`](/documentation/Swift/Sendable)

[`BidirectionalCollection`](/documentation/Swift/BidirectionalCollection)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)