Generating binary data
Project description
cw
Generating binary data
To install: pip install cw
Examples
>>> from cw import binomial_mixture
>>> import pandas as pd
>>> df = binomial_mixture(npts=5, success_prob=[0.2, 0.8], n_trials=[10, 20])
>>> isinstance(df, pd.DataFrame)
True
>>> len(df)
5
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
cw-0.0.6.tar.gz
(6.2 kB
view hashes)
Built Distribution
cw-0.0.6-py3-none-any.whl
(6.4 kB
view hashes)