Pandas
This integration lets you log pandas dataframes to Neptune.

Log pandas Dataframe

Follow these steps:

Create a run

1
import neptune.new as neptune
2
3
run = neptune.init(project='my_workspace/my_project')
Copied!

Create pandas DataFrame object

1
import pandas as pd
2
3
iris_df = pd.read_csv('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv',
4
nrows=100)
Copied!

Log DataFrame

1
run['data/iris-df'].upload(neptune.types.File.as_html(iris_df))
Copied!

Stop logging

Once you are done logging, you should stop tracking the run using the stop() method. This is needed only while logging from a notebook environment. While logging through a script, Neptune automatically stops tracking once the script has completed execution.
1
run.stop()
Copied!

Explore the results in the Neptune

Last modified 3mo ago