Skip to main content

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()

'Example image'

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

filterflow-0.1.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

filterflow-0.1.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page