get_results

Retrieve results from dbnl

dbnl.get_results(
    *,
    run: ,
) -> ResultData:

Parameters

Arguments
Description

run

The dbnl Run from which to retrieve the results.

Returns

Type
Description

ResultData

A named tuple that comprises of columns and scalars fields. These are the pandas DataFrames of the uploaded data for the particular Run.

You can only call get_results after the run is closed.

Examples

import dbnl
import pandas as pd
dbnl.login()


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

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

downloaded_data = dbnl.get_results(run=run)
assert downloaded_data.columns.equals(uploaded_data)

Last updated

Was this helpful?