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.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for filterflow-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f5918db3ef1dc23e5eedaa4271a0ba0ef6856372f980efdad21f66020560eb3 |
|
MD5 | 629ff4fe3c36ff96f0b6be4700cf8d8a |
|
BLAKE2b-256 | 2f959cdf24eccf01ee797231fcfb3f467f633d8054cd8bca54604b0bf0c49578 |