Skip to main content

A Python Package to calculate indexes related to poverty and inequality.

Project description

POVERTY

A Python Package to calculate indexes related to poverty and inequality.

Who is this for?

For anybody who want to calculate indexes related to poverty and inequality using a python package.

Installing

You can install poverty package using pip:

$ pip install poverty

Implemented Features

  • Headcount Index
  • Poverty Index
  • Squared Poverty Index
  • Sen Index
  • Sen-Shorrocks-Thon Index
  • Watts Index
  • Gini Coefficient
  • Lorenz Curve

Commands

>>> import poverty as pt
>>> poverty_line=125
>>> expenditure=[100,110,150,160]
>>> pt.calc_head(expenditure,poverty_line)
>>> pt.pov_index(expenditure,poverty_line)
>>> pt.squared_pov_index(expenditure,poverty_line)
>>> pt.sen_index(expenditure,poverty_line)
>>> pt.sst_index(expenditure,poverty_line)
>>> pt.watts_index(expenditure,poverty_line)
>>> pt.gini(expenditure)
>>> pt.draw_lorenz(expenditure)

Contributor

Ronak Sisodia

Project details


Release history Release notifications | RSS feed

This version

7.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for poverty, version 7.2
Filename, size File type Python version Upload date Hashes
Filename, size poverty-7.2-py2.py3-none-any.whl (5.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size poverty-7.2.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page