Metadata-Version: 2.1
Name: SelectSampler
Version: 0.0.1
Summary: This package allows you to fetch the dataset samples from the holoviews scatterplot as a dataframe.
Author-email: Tohya Tanemura <tohya.tanemura@kiconiaworks.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# 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:
   ```ipython
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
```
```ipython
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).
