Skip to main content

Python Distribution Checker for Pandas datas using Scipy package

Project description

Distribution-Checker

Python Distribution Checker for datas using Scipy package

Installation

pip install Distribution_Checker

Usage

from Distribution_Checker import Dist_Checker
import pandas as pd

# Load sample dataset
data = pd.read_csv('weight-height.csv')

# verbose=1 prints the log while fitting and verbose=0 doesn't
p = Dist_Checker(verbose=1)
p = p.fit(data)

# After fitting, you can get distribution sorted by Sum of Squered Error that fit your data, so the first distribution is the distribution that is closer to your data
p.get_distributions()

# You can also plot distributions and your data to see this visualy. top=10 means that you want to plot top 10 distributions that match your data
p.plot(top=10)

Output plot from weight-height.csv DataFrame image

Distributions list

            alpha, anglit, arcsine, argus, beta, betaprime, bradford,
            burr, burr12, cauchy, chi, chi2, cosine, crystalball,
            dgamma, dweibull, erlang, expon, exponnorm, exponweib,
            exponpow, f, fatiguelife, fisk, foldcauchy, foldnorm,
            genlogistic, gennorm, genpareto,weibull_max, wrapcauchy,
            genexpon, genextreme, gausshyper, gamma, gengamma, genhalflogistic,
            geninvgauss, gilbrat, gompertz, gumbel_r, gumbel_l, halfcauchy,
            halflogistic, halfnorm, halfgennorm, hypsecant, invgamma, invgauss,
            invweibull, johnsonsb, johnsonsu, kappa4, kappa3, ksone, kstwo,
            kstwobign, laplace, levy, levy_l, logistic, loggamma,
            loglaplace, lognorm, loguniform, lomax, maxwell, mielke, moyal,
            nakagami, norm, norminvgauss, pareto, pearson3,
            powerlaw, powerlognorm, powernorm, rdist, rayleigh, rice, recipinvgauss,
            semicircular, skewnorm, t, trapz, triang, truncexpon, truncnorm,
            tukeylambda, uniform, vonmises, vonmises_line, wald, weibull_min

If any problem was founded, feel free to inform me :)

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

distribution_checker-0.1.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

distribution_checker-0.1.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file distribution_checker-0.1.2.tar.gz.

File metadata

  • Download URL: distribution_checker-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for distribution_checker-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d4426fd515b5d68e436b88e07b14852b973db57a884f16b9c2a7371605c60614
MD5 c22d121afbc02ad08ffe89b8134c97fd
BLAKE2b-256 6f82c4fdbe139ed1957afdd23af0c54cb22b4b6100635ec53d2c804d243ac38f

See more details on using hashes here.

File details

Details for the file distribution_checker-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for distribution_checker-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c1da47305a5a1bb5b8ae4ee818cdd6e924c3ded44cc7566684a984290e3ed3a
MD5 bdf5ca6c8ace3a08efb2bcc748c1e22f
BLAKE2b-256 bbb9f0d47a3097cf5dbd9f4bc3a034d1ec3ab3cc1432199460d19c36382706d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page