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:
- Run sampler.setup_holoviews() first to ensure you have the bokeh extension installed.
- Then run sampler.setup_scatter(df, 'x', 'y') to setup the scatter plot.
- Run sampler.show_scatter_chart() to display the scatter plot. You can select the samples on the sidebars of the scatter plot.
- 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)
| File | Size | Uploaded | |
|---|---|---|---|
| selectsampler-0.0.1.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|