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.5.tar.gz
(6.2 kB
view details)
Built Distribution
cw-0.0.5-py3-none-any.whl
(6.4 kB
view details)
File details
Details for the file cw-0.0.5.tar.gz
.
File metadata
- Download URL: cw-0.0.5.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 892bfbfcf7629303c89ccc3d25ef1558521541a3eaff5841d0e484030a13cd7a |
|
MD5 | b55d7d8ed8109c65f5883ce92d2c2626 |
|
BLAKE2b-256 | bc876449c3dd086936c9e37ed83058ffddcba30d315b356a32d6547632fc7093 |
File details
Details for the file cw-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: cw-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09237d3a366d488723fb80c7babbe808eba9865930a271a26e33689fa29de5f7 |
|
MD5 | 026ccc5d4df900a627703bff3362f95f |
|
BLAKE2b-256 | 86f3dbbee44cff11f420a0e27ac01ea68a44f4edc6d73532f5b1894504977719 |