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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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