# tfdf.inspector.SimpleColumnSpec

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/py_tree/dataspec.py#L32-L46) |

Simplified representation of a column spec.

#### View aliases


**Main aliases**

[`tfdf.py_tree.condition.SimpleColumnSpec`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/inspector/SimpleColumnSpec), [`tfdf.py_tree.dataspec.SimpleColumnSpec`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/inspector/SimpleColumnSpec)

<br />

    tfdf.inspector.SimpleColumnSpec(
        name, type, col_idx=None
    )

For the (full) column spec, use "data_spec_pb2.columns\[i\]" directly.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `name` | A `namedtuple` alias for field number 0 |
| `type` | A `namedtuple` alias for field number 1 |
| `col_idx` | A `namedtuple` alias for field number 2 |

<br />