A library to create data flow charts.
Project description
filterflow
This package allows for the creation of funnel graphs to quickly and easily display the length of a dataset as a series of data processing steps are applied to it.
Example usage
from filterflow import Flow, FlowElement
# Create list from 0 to 100
elements = range(100)
# Declare flow
f = Flow("Example with filtering numbers", len(elements))
# Filter out odd numbers
evens_only = [x for x in elements if x%2 == 0]
f.add_step("Removing odd numbers gives:", len(evens_only))
# Filter out numbers greater than 40
evens_less_than_40 = [x for x in elements if x < 40]
f.add_step("Removing numbers >= 40:", len(evens_less_than_40))
# Plot chart
f.plot()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
filterflow-0.1.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for filterflow-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eb28903c43d533a6ddc70f08fb02f0ab915a0965623c91b46b1edf2047fa1c3 |
|
MD5 | 6f060df0c5dbe312d011eda2eff43852 |
|
BLAKE2b-256 | 3cd6ed813f11299c50016ae9b681d8d6290d44b226946b8cc708d8f68b356f65 |