Gender and the environment in Mexico
Capstone Project for Coursera Specialization: "Retrieving, Processing, and Visualizing Data with Python".
I downloaded data files from http://www.inegi.org.mx/, and I designed a variable called ProAmbiente (Pro-environment), based on each home's level of consumption of products that generate pollution and the frequency in which they invested on repairments instead of throwing them away. I wrote Python programs to read, extract, analyze and visualize that data, in a way that anyone can use them for their own purposes, by entering the name of their own files.
Visualizing data:
Gender of person who supports economically the house (sexo_jefe):
- Male
- Female

Education (educa_jefe): From zero to masters/graduate completed (0-11).
- Keys (originals): 0) Nada, 1) Kinder, 2) Primaria (trunca), 3) Primaria (terminada), 4) Secundaria (trunca), 5) Secundaria (terminada), 6) Preparatoria (trunca), 7) Preparatoria (terminada), 8) Carrera técnica (terminada), 9) Licenciatura (trunca), 10) Licenciatura (terminada), 11) Posgrado (terminado).

Socioeconomic class (est_socio: determined by each home's physical properties): From Low to High (1-4).
1. Baja (Low)
2. Media baja (Lower middle class)
3. Media alta (Upper middle class)
4. Alta (High)

* Other interesting results (total_int = members per home):


The main INSTRUCTIONS for the programs are very simple:
- The files must be in the same folder of the scripts.
- Select file.
- Select column header.
- Select alpha (if applies).
- Enter 'ya' to quit.
- etc.
All the programs have the same structure so you can use the same keywords to start/proceed/quit.
- Anowoa.py (New pandas index error)
- Performs Analysis of Variance (ANOVA), one or two ways (optional)
- Returns Analysis of Variance between two or more group means
- Returns Degrees of Freedom, Sum of Squares, Mean Square
- Returns F-value and p-value
- Returns Eta squared and Omega squared for effect size
- Returns ANOVA table and variables scatter graph


More data visualization coming soon...
How to Python:
Downloads here!
-
Macintosh.
-
Unix.
-
Windows:
~
Tutorial for Windows installation.
~
Easy Way to run Python Programs on Windows.
