# eval

```python
dbnl.eval.evaluate(df: DataFrame, metrics: Sequence[Metric], inplace: bool = False) → DataFrame
```

Evaluates a set of metrics on a dataframe, returning an augmented dataframe.

* **Parameters:**
  * **df** – input dataframe
  * **metrics** – metrics to compute
  * **inplace** – whether to modify the input dataframe in place
* **Returns:** input dataframe augmented with metrics

```python
dbnl.eval.get_column_schemas_from_dataframe_and_metrics(df: DataFrame, metrics: list[Metric]) → list[ColumnSchema]
```

Get the run config column schemas for a dataframe that was augmented with a list of metrics.

* **Parameters:**
  * **df** – Dataframe to get column schemas from
  * **metrics** – list of metrics added to the dataframe
* **Returns:** list of columns schemas for dataframe and metrics

```python
dbnl.eval.get_column_schemas_from_metrics(metrics: list[Metric]) -> list[ColumnSchema]
```

Get the run config column schemas from a list of metrics.

* **Parameters:** **metrics** – list of metrics to get column schemas from
* **Returns:** list of column schemas for metrics


---

# 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.dbnl.com/v0.20.x/using-distributional/python-sdk/eval-module/eval-module-functions/eval.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.
