neptunecontrib.api.table.log_table(name, table, experiment=None)[source]

Logs pandas dataframe to neptune.

Pandas dataframe is converted to an HTML table and logged to Neptune as an artifact with path tables/{name}.html

  • name (str) –
    Name of the chart (without extension) that will be used as a part of artifact’s destination.
  • table (pandas.Dataframe) –
    DataFrame table
  • experiment (neptune.experiments.Experiment, optional, default is None) –
    For advanced users only. Pass Neptune Experiment object if you want to control to which experiment data is logged.
    If None, log to currently active, and most recent experiment.


Start an experiment:

import neptune


Create or load dataframe:

import pandas as pd

iris_df = pd.read_csv('', nrows=100)

Log it to Neptune:

from neptunecontrib.api import log_table

log_table('pandas_df', iris_df)

Check out how the logged table looks in Neptune: