Skip to content

Tabular data

Logging tabular data#

You can generally log CSV or DataFrame files and display them as HTML in the Neptune app.

Logging CSV files#

Neptune displays a CSV file as an interactive table.

To record a CSV file, use the upload() method:

run["test/preds"].upload("path/to/test_preds.csv")

The CSV file is displayed in the All metadata section of the run view.

  • To adjust the number of displayed rows in the preview, use the drop-down menu in the bottom-right corner.
  • By switching to the Raw data tab, you can view and copy the raw contents of the file.

See in Neptune 

Logging pandas DataFrame files#

Neptune displays a pandas DataFrame as a table.

To display the DataFrame as HTML, use File.as_html() together with the upload() method:

import pandas as pd
from neptune.new.types import File

sample_df = pd.read_csv(...)

run["data/sample"].upload(File.as_html(sample_df))

See in Neptune