# pysparky_pipeline.dataframe

*module*

Driver-side execution of graph functions that return native DataFrames.

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

## pysparky_pipeline.dataframe.DataFramePipeline

*class*

```python
class DataFramePipeline(_PipelineInspection)
```

Bases: `pysparky_pipeline.inspection._PipelineInspection`

Execute selected graph functions that return PySpark DataFrames.

Registered functions are called on the driver in deterministic
topological order. The pipeline itself does not schedule Spark jobs,
create sessions, perform actions, or cache intermediate DataFrames.

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

### pysparky_pipeline.dataframe.DataFramePipeline.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/dataframe.py#L47-L49)

### pysparky_pipeline.dataframe.DataFramePipeline.execute

*method*

```python
def execute(outputs: Iterable[str] | None = None, inputs: Mapping[str, object] | None = None) -> dict[str, DataFrame]
```

Execute the requested outputs and return their DataFrames by name.

If ``outputs`` is omitted, all nodes are returned in deterministic
topological order. An explicit selection runs only those nodes and
their registered dependencies, returning the requested nodes in the
order supplied. ``inputs`` supplies values for unresolved function
parameters; Python defaults apply when no value is supplied.

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

### pysparky_pipeline.dataframe.DataFramePipeline.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.dataframe.DataFramePipeline.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.dataframe.DataFramePipeline.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.dataframe.DataFramePipeline.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.dataframe.DataFramePipeline.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.dataframe.DataFramePipeline.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.dataframe.DataFramePipeline.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)
