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

[Home](./index.md) &gt; [@datashaper/schema](./schema.md) &gt; [DataTableSchema](./schema.datatableschema.md)

## DataTableSchema interface

This defines the table-containing resource type. A dataset can be embedded directly using the `data` property, or it can be linked to a raw file using the `path`<!-- -->. If the latter, optional format and parsing options can be applied to aid interpreting the file contents. resource profile: 'datatable'

<b>Signature:</b>

```typescript
export interface DataTableSchema extends ResourceSchema 
```
<b>Extends:</b> [ResourceSchema](./schema.resourceschema.md)

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [columns?](./schema.datatableschema.columns.md) |  | number | <i>(Optional)</i> Number of columns in the data. |
|  [data?](./schema.datatableschema.data.md) |  | string \| unknown\[\] | <i>(Optional)</i> Option to embed the data directly in the JSON descriptor. Valid data formats are: - string: raw CSV data, parsed according to the <code>parser</code> options - array: raw JSON data, parsed according to the <code>shape</code> options |
|  [encoding?](./schema.datatableschema.encoding.md) |  | string | <i>(Optional)</i> String encoding. Default: "utf-8". |
|  [format?](./schema.datatableschema.format.md) |  | [DataFormat](./schema.dataformat.md) | <i>(Optional)</i> File format of the resource to inform load/parse. Note that if the data property is present, this is assumed to be "JSON". Default: "csv". |
|  [parser?](./schema.datatableschema.parser.md) |  | [ParserOptions](./schema.parseroptions.md) | <i>(Optional)</i> Parser options for interpreting a CSV or other text file that needs parse instruction. |
|  [profile](./schema.datatableschema.profile.md) |  | [KnownProfile.DataTable](./schema.knownprofile.md) |  |
|  [rows?](./schema.datatableschema.rows.md) |  | number | <i>(Optional)</i> Number of rows in the data. |
|  [shape?](./schema.datatableschema.shape.md) |  | [DataShape](./schema.datashape.md) | <i>(Optional)</i> Defines the shape and structure of stored data. |
|  [typeHints?](./schema.datatableschema.typehints.md) |  | [TypeHints](./schema.typehints.md) | <i>(Optional)</i> Options for converting string values to strict types. Note that options related to data typing only apply if type detection is turned on. Otherwise all cell values are treated as strings. Defaults based on pandas: https://pandas.pydata.org/pandas-docs/stable/user\_guide/io.html\#csv-text-files |

