Skip to main content

vpselector

The Visual Pandas Selector is a tool to visually select portions of numeric time-series data from a pandas dataframe. The tool is intended to provide an fast interactive way for manual data selection, as can be very useful in for example machine learning, regression or system identification.

Easily configure the tool to plot dataframe columns in vertically stacked subplots and view data distributions with the included histogram feature. With a simple click and drag, you can then select horizontal data windows, and let the tool automatically combine them into a new dataframe.

The user can subsequentially select different horizontal data windows via click and drag and he tool then automatically combines the visually selected sections into a new dataframe.

ezgif com-gif-maker(1)

Install

Install the package using:

pip install vpselector

Use in your project

Then simply import it using import vpselector. Then simply use:

  • If your project does not contain a pyqt application: vpselector.select_visual_data(data : pd.DataFrame, plot_config : dict)

  • To add the vpselector to an existing pyqt application: vpselector.select_visual_data_in_pyqt_app(data : pd.DataFrame, plot_config : dict, pyqt_app)

Run the Example

python3 vpselector_example.py

Use the Tool

  • Left click with your mouse and drag to define the desired horizontal window of the data to be selected.
    • The current selection distribution is now visualized in the histogram plot on the right.
  • Confirm or cancel data selection.
    • The already selected data is now marked by a grey span in the plot on the left.
    • The plot on the right contains now the histogram of all selected data.
  • repeat as many times as needed.
  • Once you could select all desired horizontal data windows click "Done selecting"

Metadata

Release files for vpselector 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vpselector 1.0.2
File Size Uploaded
vpselector-1.0.2.tar.gz 820.8 kB Details

Built distribution (wheel)

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

Total release size: 833.4 kB

Release files / vpselector-1.0.2.tar.gz

Download URL vpselector-1.0.2.tar.gz
Size 820.8 kB
Tags Source
SHA-256 checksum
How to use checksums
18f9e3408cd33309e9c486d26986b7bc049cffed99312e364422a60fc5671cad
BLAKE2b-256 checksum
How to use checksums
8a20aea42d15c30ed25cfde29356dc7fbc61c4dce0f92b85025a251563d93ef2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / vpselector-1.0.2-py3-none-any.whl

Download URL vpselector-1.0.2-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b13410d2b2a77d215bf9364e0550a385f329df76ac661574628a7efd1dc74219
BLAKE2b-256 checksum
How to use checksums
6ded8e239dfd3bfe60875c76d1964d3fd7fab05c92904a1fce8408d01fcaf327
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

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