Skip to main content

Quickly annotate/label your data using jupyter widgets and pandas.

Project description

Classy PandasClassy Pandas

Quickly annotate/label your data using jupyter widgets and pandas.

Sometimes you have a dataset that you need to label before training your classification models or whatever. If you are already using jupyter and pandas why not do that using some ipywidgets?

Prerequisites

What things you need to install the software and how to install them

pip install pandas
pip install jupyter
pip install ipywidgets

If you are using jupyter lab you will also need to install ipywidgets extension: https://ipywidgets.readthedocs.io/en/latest/user_install.html

Installing

Once you have the above installed simply run:

pip install classypandas

Examples

You can then run the examples in the demo folder in this repository to start labelling! Since the content is displayed as html you can define your column as an html string and have it presented in the screen anyway you want it.

Code:

import pandas as pd
from classypandas import core

df = pd.read_csv('demo.csv')
labels = ['text', 'image', 'other']
classy = core.Classy(df, 'html', 'label', labels)
classy.display()

Preview:

Example 1

You can then, at any time check your progress:

Example 1

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

classypandas-0.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

classypandas-0.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded 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