Skip to main content

draw a dataset from inside jupyter

Project description

drawdata

This small python app allows you to draw a dataset in a jupyter notebook. This should be very useful when teaching machine learning algorithms.

You can get the same tooling from going to drawdata.xyz but with this library you'll also be able to use it from within jupyter. This will save you a precious tab in the browser.

Installation

Installation occurs via pip.

python -m pip install drawdata

To read the data, pandas is useful:

python -m pip install pandas

Usage

When you run this from jupyter, you should load in an iframe.

from drawdata import draw_scatter

draw_scatter()

Once you're done drawing you can copy the data to the clipboard. After this you can use pandas to read the clipboard to get your drawn data into a dataframe.

import pandas as pd 
pd.read_clipboard(sep=",")

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

drawdata-0.2.0.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

drawdata-0.2.0-py2.py3-none-any.whl (2.0 kB 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