report_column_results

Report all column results to dbnl

dbnl.report_results(
    *,
    run: ,
    data: ,
) -> None:

Parameters

Arguments
Description

run

The dbnl Run that the results will be reported to.

data

A pandas DataFrame with all the results to report to dbnl. The columns of the DataFrame must match the columns described in the RunConfig associated with the Run.

Limitations

All data should be reported to dbnl at once. Calling dbnl.report_column_results more than once will overwrite the previously uploaded data.

Once a Run is closed. You can no longer call report_column_results to send data to dbnl.

Examples

import dbnl
import pandas as pd
dbnl.login()


proj1 = dbnl.get_or_create_project(name="test_p1")
runcfg1 = dbnl.create_run_config(project=proj1, columns=[{"name": "error", "type": "float"}])
run1 = dbnl.create_run(project=proj1, run_config=runcfg1)

data = pd.DataFrame({"error": [0.11, 0.33, 0.52, 0.24]})
dbnl.report_column_results(run=run1, data=data)

Last updated

Was this helpful?