# Class ColumnSpec (2.20.0)

2.20.0 (latest) 2.19.0 2.18.1 2.17.0 2.16.4 2.15.0 2.14.1 2.13.5 2.12.0 2.11.4 2.10.1 2.9.0 2.8.3 2.7.3 2.6.0 2.5.2 2.4.2 2.3.0 2.2.0 2.1.0 2.0.0 1.0.3 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0

    ColumnSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A representation of a column in a relational table. When listing
them, column specs are returned in the same order in which they were
given on import . Used by:

- Tables

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. The resource name of the column specs. Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}` |
| `data_type` | `https://docs.cloud.google.com/python/docs/reference/automl/latest/google.cloud.automl_v1beta1.types.DataType` The data type of elements stored in the column. |
| `display_name` | `str` Output only. The name of the column to show in the interface. The name can be up to 100 characters long and can consist only of ASCII Latin letters A-Z and a-z, ASCII digits 0-9, underscores(\\_), and forward slashes(/), and must start with a letter or a digit. |
| `data_stats` | `https://docs.cloud.google.com/python/docs/reference/automl/latest/google.cloud.automl_v1beta1.types.DataStats` Output only. Stats of the series of values in the column. This field may be stale, see the ancestor's Dataset.tables_dataset_metadata.stats_update_time field for the timestamp at which these stats were last updated. |
| `top_correlated_columns` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/automl/latest/google.cloud.automl_v1beta1.types.ColumnSpec.CorrelatedColumn]` Deprecated. |
| `etag` | `str` Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |

## Classes

### CorrelatedColumn

    CorrelatedColumn(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Identifies the table's column, and its correlation with the
column this ColumnSpec describes.