<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@datashaper/schema](./schema.md) &gt; [FieldMetadata](./schema.fieldmetadata.md)

## FieldMetadata interface

Holds core metadata/stats for a data field.

<b>Signature:</b>

```typescript
export interface FieldMetadata 
```

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [bins?](./schema.fieldmetadata.bins.md) |  | [Bin](./schema.bin.md)<!-- -->\[\] | <i>(Optional)</i> Computed histogram bins for numeric fields. |
|  [categories?](./schema.fieldmetadata.categories.md) |  | [Category](./schema.category.md)<!-- -->\[\] | <i>(Optional)</i> List of unique categories for string fields. |
|  [count?](./schema.fieldmetadata.count.md) |  | number | <i>(Optional)</i> Count of valid values in the column (excluding invalid, null, etc.) |
|  [distinct?](./schema.fieldmetadata.distinct.md) |  | number | <i>(Optional)</i> Count of unique values in the column |
|  [invalid?](./schema.fieldmetadata.invalid.md) |  | number | <i>(Optional)</i> Count of invalid/null values in the column |
|  [magnitude?](./schema.fieldmetadata.magnitude.md) |  | number | <i>(Optional)</i> Magnitude of the data, i.e., the absolute difference between the min and max values. |
|  [maximum?](./schema.fieldmetadata.maximum.md) |  | number | <i>(Optional)</i> Max value. Note that this can be specified rather than computed, in which case it defines valid boundaries for the data values. |
|  [mean?](./schema.fieldmetadata.mean.md) |  | number | <i>(Optional)</i> Mean. |
|  [median?](./schema.fieldmetadata.median.md) |  | number | <i>(Optional)</i> Median. |
|  [minimum?](./schema.fieldmetadata.minimum.md) |  | number | <i>(Optional)</i> Min value. Note that this can be specified rather than computed, in which case it defines valid boundaries for the data values. |
|  [mode?](./schema.fieldmetadata.mode.md) |  | string \| number \| boolean \| Date | <i>(Optional)</i> Mode |
|  [stdev?](./schema.fieldmetadata.stdev.md) |  | number | <i>(Optional)</i> Standard deviation. |
|  [type?](./schema.fieldmetadata.type.md) |  | [DataType](./schema.datatype.md) | <i>(Optional)</i> TEMP: this is determined via stats introspection, but our much more robust type discovery for the codebooks should be used, and the type on Field. |

