# pysparky_pipeline.column

*module*

Native PySpark column pipeline construction and lazy transformation.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/column.py#L1-L1)

## pysparky_pipeline.column.ColumnPipeline

*class*

```python
class ColumnPipeline(_PipelineInspection)
```

Bases: `pysparky_pipeline.inspection._PipelineInspection`

Build lazy DataFrame projections from functions returning Columns.

Function names define output columns, and parameter names define source or
derived-column dependencies. The pipeline stores graph metadata only; a
Spark transformation is constructed when `transform` is called.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/column.py#L40-L200)

### pysparky_pipeline.column.ColumnPipeline.graph

*property*

```python
graph: DependencyGraph
```

Return the immutable dependency graph used by this pipeline.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/column.py#L61-L63)

### pysparky_pipeline.column.ColumnPipeline.transform

*method*

```python
def transform(dataframe: DataFrame, outputs: Iterable[str] | None = None) -> DataFrame
```

Return a lazy DataFrame with the selected derived columns appended.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/column.py#L65-L119)

### pysparky_pipeline.column.ColumnPipeline.describe

*method*

```python
def describe() -> str
```

Inherited from: `pysparky_pipeline.inspection._PipelineInspection`

Return a concise, deterministic summary without printing it.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/inspection.py#L45-L60)

### pysparky_pipeline.column.ColumnPipeline.execution_order

*method*

```python
def execution_order(outputs: Iterable[str] | None = None) -> tuple[str, ...]
```

Inherited from: `pysparky_pipeline.inspection._PipelineInspection`

Return the deterministic order for the selected dependency closure.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/inspection.py#L79-L81)

### pysparky_pipeline.column.ColumnPipeline.lineage

*method*

```python
def lineage(name: str) -> dict[str, object]
```

Inherited from: `pysparky_pipeline.inspection._PipelineInspection`

Describe declared upstream nodes and inputs for one output node.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/inspection.py#L66-L77)

### pysparky_pipeline.column.ColumnPipeline.required_inputs

*method*

```python
def required_inputs(outputs: Iterable[str] | None = None) -> tuple[str, ...]
```

Inherited from: `pysparky_pipeline.inspection._PipelineInspection`

Return required external inputs for all or selected output nodes.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/inspection.py#L62-L64)

### pysparky_pipeline.column.ColumnPipeline.to_dict

*method*

```python
def to_dict() -> dict[str, object]
```

Inherited from: `pysparky_pipeline.inspection._PipelineInspection`

Return the versioned, language-independent graph representation.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/inspection.py#L83-L110)

### pysparky_pipeline.column.ColumnPipeline.to_json

*method*

```python
def to_json() -> str
```

Inherited from: `pysparky_pipeline.inspection._PipelineInspection`

Serialize `to_dict` using stable standard-library JSON.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/inspection.py#L112-L114)

### pysparky_pipeline.column.ColumnPipeline.to_mermaid

*method*

```python
def to_mermaid() -> str
```

Inherited from: `pysparky_pipeline.inspection._PipelineInspection`

Return deterministic Mermaid flowchart source for declared edges.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/inspection.py#L116-L134)
