inequality.gini.Gini#

class inequality.gini.Gini(x, column=None)[source]#

Classic Gini coefficient in absolute deviation form.

Parameters:
xlist, numpy.array, pandas.Series, or pandas.DataFrame

An array in the shape \((n,1)\) containing the attribute values. For a pandas.DataFrame, pass column to select the values.

columnstr, optional

Name of the column holding the attribute values when x is a pandas.DataFrame.

Attributes:
gfloat

Gini coefficient.

__init__(x, column=None)[source]#

Methods

__init__(x[, column])