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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drawdata-0.2.0-py2.py3-none-any.whl (2.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file drawdata-0.2.0.tar.gz.

File metadata

  • Download URL: drawdata-0.2.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.8

File hashes

Hashes for drawdata-0.2.0.tar.gz
Algorithm Hash digest
SHA256 08d14473e9db04f2d4ae2baf153259271cdd42af17c08c6f6424a9c88f54bd87
MD5 be1086848ace0af3ad85f05cfbe6f9da
BLAKE2b-256 d5edf0d354e256126384fc1dd9e8ac9ac7a42423c466b7920d17f5eb269075b0

See more details on using hashes here.

File details

Details for the file drawdata-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: drawdata-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.8

File hashes

Hashes for drawdata-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ce4be693aaaa2b41c2e579ad69a57080783b58b3861d30dd5fe6e41a72d097b6
MD5 d33249e582d65de62ffc61797f3568ad
BLAKE2b-256 f7e6538faee79cccf5449474a68f930da9ff4e8d8e444fc198b45e138562b5b3

See more details on using hashes here.

Supported by

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