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
# Create list from 0 to 99
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 evens_only 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.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for filterflow-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e78169a2ac03554d091bab4f21801cb03d71fe4f2576748269653cbf6215c92 |
|
MD5 | 7d355d064641ecd86caf1c2d97d5e6b0 |
|
BLAKE2b-256 | 8c8f80e41f316de864d68d7ec84109dd2028dd3dbf2bdd9a378d62efb3280234 |