inequality.gini.Gini#
- class inequality.gini.Gini(x, column=None)[source]#
Classic Gini coefficient in absolute deviation form.
- Parameters:
- x
list,numpy.array,pandas.Series,orpandas.DataFrame An array in the shape \((n,1)\) containing the attribute values. For a
pandas.DataFrame, passcolumnto select the values.- column
str,optional Name of the column holding the attribute values when
xis apandas.DataFrame.
- x
- Attributes:
- g
float Gini coefficient.
- g
Methods
__init__(x[, column])