Skip to content

milicolazo/apode

 
 

Repository files navigation

Apode

Build Status Documentation Status Coverage Status License: MIT Python 3.6+ GitHub issues GitHub forks GitHub stars https://github.com/leliel12/diseno_sci_sfw

Apode is a package that contains a set of indicators that are applied in economic analysis. It contains measures of poverty, inequality, polarization, wealth and concentration.

Requirements

You need Python 3.8 to run Apode.

Installation

Clone this repo and then inside the local directory execute

$ pip install -e .

Features

Objects are created using:

ad = ApodeData(DataFrame, income_column)

Where income_column is the name of a column in the dataframe.

Methods that calculate indicators:

ad.poverty(method,*args)    
ad.ineq(method,*args)
ad.welfare(method,*args) 
ad.polarization(method,*args)
ad.concentration(method,*args)

Graphical representations:

ad.plot.hist()
ad.plot.tip(**kwargs)
ad.plot.lorenz(**kwargs)
ad.plot.pen(**kwargs)

Using Apode

To use Apode, follow these steps:

x = [23, 10, 12, 21, 4, 8, 19, 15, 11, 9]
df = pd.DataFrame({'x':x})
ad = ApodeData(df1, income_column="x") 
pline = 10 # Poverty line
p = ad.poverty('headcount',pline=pline)
p

For more examples, please refer to the Tutorial.

Documentation.

Contributors

Thanks to the following people who have contributed to this project:

Support

If you want to contact me you can reach me at ngrion@gmail.com. If you have issues please report them as a issue here.

License

Distributed under the MIT License. See LICENSE for more information.

References

About

Herramientas para efectuar simulaciones en ciencias sociales

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 79.9%
  • Jupyter Notebook 12.7%
  • Fortran 5.5%
  • R 1.2%
  • Stata 0.7%