Skip to content

Log tabular data#

Previewing CSV data as an interactive table

Neptune displays a CSV file as an interactive table.

To log 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 top-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 regular HTML table.

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

import pandas as pd
from neptune.types import File

sample_df = pd.read_csv(...)

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

See in Neptune