I could not find a good/sensible-looking Gini Coefficient function in Python
so I wrote one:https://github.com/oliviaguest/gini …
PS: compared it vs one that is sensible and answers are comparable - though slight differences (after 6+ decimals): http://pysal.readthedocs.io/en/latest/_modules/pysal/inequality/gini.html …
-
-
Although! Mine doesn't break my pc when I run it on the actual big data so pysal is not as good and/or mine is simpler to use
-
Apparently their use of list comprehensions breaks it. I use numpy to calculate the same & it doesn't implode when doing huge arrays.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.