Skip to main content

pygini

Very simple module that computes the Gini index of a numpy array.

Installation

pip install pygini

Usage

import numpy as np
from pygini import gini

RG = np.random.default_rng(0)
A = RG.random(100)
GI = gini(A)

# Also compute along axis
A = RG.random((100, 80, 80))
GI = gini(A, axis=0)

# GI.shape = (80, 80)

See examples directory.

Metadata

Release files for pygini 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygini 1.0.1
File Size Uploaded
pygini-1.0.1.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygini 1.0.1
File Interpreter ABI Platform
pygini-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / pygini-1.0.1.tar.gz

Download URL pygini-1.0.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e484a59158f1343fd550c75573f278aa17b55ee05837ed4a9b77565470636e4b
BLAKE2b-256 checksum
How to use checksums
ad857d4c33af7f26a43621cb156e3f06bca05eb82cb2c9587b05a0a290ce8941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9

Release files / pygini-1.0.1-py3-none-any.whl

Download URL pygini-1.0.1-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b130594430bb9047065b66531ab70eb5f9d944af13db985215bc804f677bd53e
BLAKE2b-256 checksum
How to use checksums
1c5f079f36cbfe4410f0d53232e192d01c78489dff52a1589a44c16c02e2a46e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page