report_column_results

Report all column results to dbnl

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

Parameters

Arguments
Description

run

The dbnl Run that the results will be reported to.

data

A pandas DataFramearrow-up-right with all the results to report to dbnl. The columns of the DataFrame must match the columns described in the RunConfigarrow-up-right associated with the Run.

Limitations

circle-exclamation
triangle-exclamation

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)

Was this helpful?