Skip to main content

SelectSampler package

This package allows you to fetch the dataset samples from the holoviews scatterplot as a dataframe. It only works in Jupyter notebook environment. An example usage is the following:

import numpy as np
sampler = ScatterSampler()
# Arbitrary datasets for demonstration
mat = np.random.randint(0, 100, (100, 2))
df = pd.DataFrame(mat, columns=['x', 'y'])
sampler.setup_holoviews()
sampler.setup_scatter(df, 'x', 'y')
scatter_chart = sampler.show_scatter_chart()
scatter_chart
sampler.extract_df()

Steps:

  1. Run sampler.setup_holoviews() first to ensure you have the bokeh extension installed.
  2. Then run sampler.setup_scatter(df, 'x', 'y') to setup the scatter plot.
  3. Run sampler.show_scatter_chart() to display the scatter plot. You can select the samples on the sidebars of the scatter plot.
  4. Finally, run sampler.extract_df() to get the selected samples in a dataframe (you need to run this in the separate cell).

Release files for SelectSampler 0.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 SelectSampler 0.0.1
File Size Uploaded
selectsampler-0.0.1.tar.gz 2.8 kB Details

Built distribution (wheel)

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

Total release size: 6.0 kB

Release files / selectsampler-0.0.1.tar.gz

Download URL selectsampler-0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a7df01995afd051b1e6516a497f9be8e38cc547ced60f682562611ba7d8f196b
BLAKE2b-256 checksum
How to use checksums
9cc61e1608a8cb3d680e64c9b36b5f65a83bef892e3676b0f7aeabf96ae5dd25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Release files / SelectSampler-0.0.1-py3-none-any.whl

Download URL SelectSampler-0.0.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5891e69f6de068a7425a550e26d3014f1c85f24eb14db95b59af4aa901a9332d
BLAKE2b-256 checksum
How to use checksums
dc979e2550e9de60c99460c8e1e620896523995fac3d12b2285a9fd360e8d25c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.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