# Column

Represents a single column in a model schema with its metadata and constraints.

A Column defines the structure and properties of a data column that will be used in a Fiddler model. It includes information about the column's data type, value ranges, categorical values, binning configuration, and other metadata necessary for proper data validation and monitoring.

This class is used within ModelSchema to define the complete structure of data that a model expects to receive.

## Examples

Creating a numeric column:

```python
column = Column(
    name="age",
    data_type=DataType.INTEGER,
    min=0,
    max=120
)
```

Creating a categorical column:

```python
column = Column(
    name="category",
    data_type=DataType.CATEGORY,
    categories=["A", "B", "C"]
)
```

Creating a vector column:

```python
column = Column(
    name="embedding",
    data_type=DataType.VECTOR,
    n_dimensions=128
)
```

## name *: str*

Column name provided by the customer

## data\_type *: DataType*

Data type of the column

## min *: int | float | None*

Min value of integer/float column

## max *: int | float | None*

Max value of integer/float column

## categories *: List | None*

List of unique values of a categorical column

## bins *: List\[int | float] | None*

Bins of integer/float column

## replace\_with\_nulls *: List | None*

Replace the list of given values to NULL if found in the events data

## n\_dimensions *: int | None*

Number of dimensions of a vector column


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fiddler.ai/api/fiddler-python-client-sdk/schemas/column.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
