Skip to main content

Visualize and interactively select time-series data from a pandas DataFrame.

Project description

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"

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

vpselector-1.0.2.tar.gz (820.8 kB view details)

Uploaded Source

Built Distribution

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

vpselector-1.0.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file vpselector-1.0.2.tar.gz.

File metadata

  • Download URL: vpselector-1.0.2.tar.gz
  • Upload date:
  • Size: 820.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for vpselector-1.0.2.tar.gz
Algorithm Hash digest
SHA256 18f9e3408cd33309e9c486d26986b7bc049cffed99312e364422a60fc5671cad
MD5 d107ad27866bde5c6a037906d94918cd
BLAKE2b-256 8a20aea42d15c30ed25cfde29356dc7fbc61c4dce0f92b85025a251563d93ef2

See more details on using hashes here.

File details

Details for the file vpselector-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: vpselector-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for vpselector-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b13410d2b2a77d215bf9364e0550a385f329df76ac661574628a7efd1dc74219
MD5 583ecb5f53ec6bb6f52848b1d6967f84
BLAKE2b-256 6ded8e239dfd3bfe60875c76d1964d3fd7fab05c92904a1fce8408d01fcaf327

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