Statispy
Satisfy your cravings for statistics using statispy. It's a python toolset what will help you in your journey of statistical analysis through a plug and play manner. All you need to do is import the tools, feed the data, and collect the result, all through one single line of code. Our mission: Make statistics easy for non-coding statisticians.
Table of contents
Prerequisites
As of now, the statispy toolset supports only the Pandas Dataframe format for data. The dependencies that you need to use this toolset are
Python >=3.6
pandas==1.0.1
Installing
Installing the package is a no brainer.
pip install statispy
Documentation
Please read the documentation to understand how to use the toolset.
sample
Sample is a sub-package that deals with sampling data. Currently the tools support only basic sampling techniques, which includes : Random sampling and Systematic sampling.
To import the sampling tools use
from statispy import sample
Basic sampling
sample.basic_sample(data, size, method = 'random')
- data: pandas DataFrame object, containing the statistical dataset (population)
- size: Sample size
- method: sampling technique.
method = 'random'creates a random sample.method = 'systematic'creates a systematic sample. Returns : Dataframe
stats
The stats sub-package offers basic statistical tools which includes : Mean, Root mean square,Standard deviation and variance
To import the sampling tools use
from statispy import stats
Mean
stats.mean(data, col, weight = None)
- data: pandas DataFrame object, containing the statistical dataset (population)
- col: column whose mean is to be calculated
- weight: Default value is
None. To calculate weighted mean, setweightas the column name which contains the weight
Returns : Float/integer
Root mean square
stats.RMS(data, col)
- data: pandas DataFrame object, containing the statistical dataset (population)
- col: column whose mean is to be calculated
Returns : Float/integer
Variance
stats.variance(data, col)
- data: pandas DataFrame object, containing the statistical dataset (population)
- col: column whose mean is to be calculated
Returns : Float/integer
Standard Deviation
stats.SD(data, col)
- data: pandas DataFrame object, containing the statistical dataset (population)
- col: column whose mean is to be calculated
Returns : Float/integer
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Shankhanil Ghosh - Initial work
See also the list of contributors who participated in this project.
License
This project is licensed under the Apache-2.0 License - see the LICENSE.md file for details
Release files for statispy 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| statispy-1.0.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| statispy-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / statispy-1.0.0.tar.gz
| Download URL | statispy-1.0.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cb345cf687da9cf1166e4ca1a5e765cc48d30be9e6b76266ee10362ca62a17e
|
|
BLAKE2b-256 checksum How to use checksums |
139ed1d1304f37256ac07309f7e6a0921138cf5a4302e2f29a51007ae2dbefd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / statispy-1.0.0-py3-none-any.whl
| Download URL | statispy-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
238ca6ea790d67eaa70c41678eb346b233fa9cbf899f9e4cd77c3331edb3c257
|
|
BLAKE2b-256 checksum How to use checksums |
ffe801a3b253d95dad4241379d8abb45ad0180aa93883ec591cf8ab476318a17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|