Skip to main content

Inline data profiles for pandas dataframes in jupyter

Project description

ProfileInline

Inline data profiles to help you understand your data with one function.

Check out AutoProfiler for a version that updates automatically when you change your data.

Installation

You can install using pip:

pip install diginlineprofiler

Usage

Import in a Jupyter notebook or lab then pass in any pandas dataframe.

from diginlineprofiler import Visualizer as plot # here we rename to plot but can be anything

# df must be a pandas dataframe!
plot(df)

screenshot of InlineProfiler

Development Installation

Create a dev environment:

conda create -n diginlineprofiler-dev -c conda-forge nodejs yarn python jupyterlab jupyter-packaging
conda activate diginlineprofiler-dev

Install the python. This will also build the TS package.

pip install -e .

When developing your extensions, you need to manually enable your extensions with the notebook / lab frontend. For lab, this is done by the command:

jupyter labextension develop --overwrite .
npm run build

How to see your changes

Jupyter Lab:

If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the widget.

# Watch the source directory in one terminal, automatically rebuilding when needed
npm run watch
# Run JupyterLab in another terminal
jupyter lab

After a change wait for the build to finish and then refresh your browser and the changes should take effect.

Python:

If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diginlineprofiler-0.1.2.tar.gz (1.0 MB view hashes)

Uploaded Source

Built Distribution

diginlineprofiler-0.1.2-py2.py3-none-any.whl (1.3 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page