> For the complete documentation index, see [llms.txt](https://docs.dbnl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dbnl.com/v0.21.x/using-distributional/python-sdk/sdk-functions/run-results/get_scalar_results.md).

# get\_scalar\_results

<pre class="language-python"><code class="lang-python">dbnl.get_scalar_results(
    *,
    run: <a data-footnote-ref href="#user-content-fn-1">Run</a>,
) -> pandas.DataFrame:
</code></pre>

## Parameters

<table><thead><tr><th width="188">Arguments</th><th>Description</th></tr></thead><tbody><tr><td><code>run</code></td><td>The dbnl <a href="/pages/QtYyvw16aMflnd2CNWFJ">Run</a> from which to retrieve the results.</td></tr></tbody></table>

## Returns

<table><thead><tr><th width="224">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>pandas.DataFrame</code></td><td>A <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html">pandas DataFrame</a> of the uploaded <a href="/pages/HkZwT4rlJJ3j320LnMOQ"> scalar data</a> for the particular Run.</td></tr></tbody></table>

{% hint style="danger" %}
You can only call `get_scalar_results` after the run is [closed](/v0.21.x/using-distributional/python-sdk/sdk-functions/run/close_run.md).
{% endhint %}

## Examples

```python
import dbnl
import pandas as pd
dbnl.login()

proj1 = dbnl.get_or_create_project(name="test_p1")

data = pd.DataFrame({"error": [0.11, 0.33, 0.52, 0.24]})
run = dbnl.report_run_with_results(
    project=proj,
    column_results=data,
    scalar_results={"rmse": 0.37}
)

downloaded_scalars = dbnl.get_scalar_results(run=run)
```

[^1]: [Run](/v0.21.x/using-distributional/python-sdk/sdk-objects/run.md)
