<!--
{
  "availability" : [
    "Xcode: 27.0.0 -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Evaluations",
  "identifier" : "/documentation/Evaluations/EvaluationResult/jsonRepresentableDataFrame(of:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Evaluations"
    ],
    "preciseIdentifier" : "s:11Evaluations16EvaluationResultV26jsonRepresentableDataFrame2of07TabularF00fG0VAC0fG4KindO_tKF"
  },
  "title" : "jsonRepresentableDataFrame(of:)"
}
-->

# jsonRepresentableDataFrame(of:)

Transforms a DataFrame into one with column types compatible with JSON representation.

```
func jsonRepresentableDataFrame(of kind: EvaluationResult.DataFrameKind) throws -> DataFrame
```

## Parameters

`kind`

Whether to convert the summary or detailed DataFrame.

## Return Value

A new DataFrame with JSON-serializable column types.

## Discussion

The detailed branch always excludes the `Transcript` column from this public helper;
transcript serialization is opted into through [`jsonData(includeReportMetadata:includeTranscripts:jsonOptions:)`](/documentation/Evaluations/EvaluationResult/jsonData(includeReportMetadata:includeTranscripts:jsonOptions:)).

---

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)