Skip to main content

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

Metadata

Release files for classypandas 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for classypandas 0.1
File Size Uploaded
classypandas-0.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for classypandas 0.1
File Interpreter ABI Platform
classypandas-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / classypandas-0.1.tar.gz

Download URL classypandas-0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5e828c2d8157ab961b8f6b45a6595b92275e874dc3c0b6b6eb0514d204e448ea
BLAKE2b-256 checksum
How to use checksums
908dafbc6767ed8768e09485d977bf709b513eb90a307bf53f789210ada673f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

Release files / classypandas-0.1-py3-none-any.whl

Download URL classypandas-0.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34f951ce04e74ef214232e7bb240e2c60ab1d86f6eb6ec95f552058e3b177df8
BLAKE2b-256 checksum
How to use checksums
35609cc700b9daa3d2cd77e2acefd4824189d307284e172f733bc970febe9d11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page