Skip to content

Repository for the filterflow PyPi package that creates data flow diagrams.

License

Notifications You must be signed in to change notification settings

LeviWadd/filterflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

'Example image'

About

Repository for the filterflow PyPi package that creates data flow diagrams.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages