Skip to content

Commit

Permalink
remove example pickle for now
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed Jun 13, 2018
1 parent 9d9bded commit e0f4001
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Binary file removed examples/data.pickle
Binary file not shown.
18 changes: 0 additions & 18 deletions test_convoys.py
Expand Up @@ -208,21 +208,3 @@ def test_marriage_example():
def test_dob_violations_example():
from examples.dob_violations import run
run()


def test_other_data():
data = pandas.read_pickle('examples/data.pickle')
unit, groups, (G, B, T) = convoys.utils.get_arrays(
data, groups='group', created='created_at', converted='action_at',
now='now', unit='days', max_groups=10, group_min_size=100)
convoys.plotting.plot_cohorts(G, B, T,
model='generalized-gamma',
groups=groups,
ci=0.95)
matplotlib.pyplot.legend()
convoys.plotting.plot_cohorts(G, B, T,
model='kaplan-meier',
groups=groups,
plot_kwargs={'linestyle': '--'})
matplotlib.pyplot.xlabel(unit)
matplotlib.pyplot.savefig('test.png')

0 comments on commit e0f4001

Please sign in to comment.