fetch_runs_table()
Python package: neptune-query
Fetches a table of run metadata, with runs as rows and attributes as columns.
To limit the results, define filters for runs to search or attributes to include.
Returns a DataFrame similar to the runs table in the web app. For series attributes, the last logged value is returned.
Parameters
Returns
pandas.DataFrame – A table with runs as rows and attributes as columns. The DataFrame has a MultiIndex with:
- Index:
["run", "step"] - Columns:
- Single-level index with attribute names, or
- Multi-index with
["attribute", "type"]if thetype_suffix_in_column_namesargument is set toTrue
Raises
AttributeTypeInferenceError– If the attribute type wasn't specified in a filter passed to therunsargument, and the attribute has multiple types across the project's runs.ConflictingAttributeTypes– If there are conflicting attribute types under the same path and thetype_suffix_in_column_namesargument is set toFalse.
Examples
Fetch specific runs, with attributes matching loss, batch_size or learning_rate as columns:
import neptune_query.runs as nq_runs
nq_runs.fetch_runs_table(
runs=[
"geometric-composite-20250902060724545-i2ufv",
"glowing-database-20250902060704895-9ps29",
"centered-decoder-20250829091346879-mo8l9",
],
attributes=r"loss | batch_size | learning_rate",
)
Sample output
config/batch_size config/learning_rate loss
run
geometric-composite-20250902060724545-i2ufv 32.0 0.001 0.025725
glowing-database-20250902060704895-9ps29 32.0 0.001 0.030208
centered-decoder-20250829091346879-mo8l9 64.0 0.002 0.123372
Fetch metadata from the constituent runs of an experiment:
import neptune_query.runs as nq_runs
from neptune_query.filters import Filter
nq_runs.fetch_runs_table(
runs=Filter.eq("sys/experiment/name", "seabird-4"),
attributes=r"loss | configs",
)