Path: blob/main/Trabajo_grupal/WG5/Grupo_4_jupyter.ipynb
2714 views
Kernel: Python 3 (ipykernel)
Work Group 5 - Grupo 4
Integrantes:
Luana Morales - 20191240
Flavia Oré - 20191215
Marcela Quintero - 20191445
Seidy Ascencios - 20191622
In [8]:
Out[8]:
Requirement already satisfied: pyreadstat in d:\anaconda\lib\site-packages (1.1.9)
Requirement already satisfied: pandas>=1.2.0 in d:\anaconda\lib\site-packages (from pyreadstat) (1.2.4)
Requirement already satisfied: python-dateutil>=2.7.3 in d:\anaconda\lib\site-packages (from pandas>=1.2.0->pyreadstat) (2.8.1)
Requirement already satisfied: numpy>=1.16.5 in d:\anaconda\lib\site-packages (from pandas>=1.2.0->pyreadstat) (1.20.1)
Requirement already satisfied: pytz>=2017.3 in d:\anaconda\lib\site-packages (from pandas>=1.2.0->pyreadstat) (2021.1)
Requirement already satisfied: six>=1.5 in d:\anaconda\lib\site-packages (from python-dateutil>=2.7.3->pandas>=1.2.0->pyreadstat) (1.15.0)
In [9]:
Out[9]:
Requirement already satisfied: savReaderWriter in d:\anaconda\lib\site-packages (3.4.2)
In [36]:
In [37]:
Out[37]:
In [41]:
Out[41]:
In [40]:
Out[40]:
year 0
MES 0
CONGLOME 0
VIVIENDA 0
HOGAR 0
CODPERSO 0
UBIGEO 0
DOMINIO 0
ESTRATO 0
P201P 0
P203 0
P203A 22795
P203B 22795
P204 2349
P205 4904
P206 82480
P207 2349
P208A 2349
P208B 84038
P209 19016
dtype: int64
In [47]:
In [50]:
Out[50]:
{'DOMINIO': {1.0: 'Costa Norte', 2.0: 'Costa Centro', 3.0: 'Costa Sur', 4.0: 'Sierra Norte', 5.0: 'Sierra Centro', 6.0: 'Sierra Sur', 7.0: 'Selva', 8.0: 'Lima Metropolitana'}, 'ESTRATO': {1.0: ' De 500 000 a más habitantes', 2.0: ' De 100 000 a 499 999 habitantes', 3.0: ' De 50 000 a 99 999 habitantes', 4.0: ' De 20 000 a 49 999 habitantes', 5.0: 'De 2 000 a 19 999 habitantes', 6.0: ' De 500 a 1 999 habitantes', 7.0: ' Área de Empadronamiento Rural (AER) Compuesto', 8.0: ' Área de Empadronamiento Rural (AER) Simple'}, 'P203': {0.0: 'Panel', 1.0: 'Jefe/Jefa', 2.0: 'Esposo(a)/compañero(a)', 3.0: 'Hijo(a)/Hijastro(a)', 4.0: 'Yerno/Nuera', 5.0: 'Nieto(a)', 6.0: 'Padres/Suegros', 7.0: 'Otros parientes', 8.0: 'Trabajador Hogar', 9.0: 'Pensionista', 10.0: 'Otros no parientes', 11.0: 'Hermano(a)'}, 'P203B': {1.0: 'Jefe/jefa de hogar', 2.0: 'Esposa(o)', 3.0: 'Hijo(a)', 6.0: 'Padres/suegros'}, 'P204': {1.0: 'Si', 2.0: 'No'}, 'P205': {1.0: 'Si', 2.0: 'No'}, 'P206': {1.0: 'Si', 2.0: 'No'}, 'P207': {1.0: 'Hombre', 2.0: 'Mujer'}, 'P209': {1.0: 'Conviviente', 2.0: 'Casado(a)', 3.0: 'Viudo(a)', 4.0: 'Divorciado(a)', 5.0: 'Separado(a)', 6.0: 'Soltero(a)'}}
{'year': '', 'MES': '', 'CONGLOME': '', 'VIVIENDA': '', 'HOGAR': '', 'CODPERSO': '', 'UBIGEO': '', 'DOMINIO': 'Dominio geográfico', 'ESTRATO': 'Estrato geográfico', 'P201P': '', 'P203': '¿Cuál es la relación de parentesco con el jefe(a) del hogar', 'P203A': '', 'P203B': 'Relación de parentesco con el jefe(a) del núcleo familiar', 'P204': '¿Es miembro del hogar?', 'P205': '¿Se encuentra ausente del hogar 30 días o más?', 'P206': '¿Está presente en el hogar 30 días o más?', 'P207': 'Sexo', 'P208A': '', 'P208B': '', 'P209': '¿Cuál es su estado civil o conyugal?'}
In [56]:
Out[56]:
{1.0: 'Hombre', 2.0: 'Mujer'}
In [57]:
Out[57]:
{1.0: 'Si', 2.0: 'No'}
In [59]:
Out[59]:
'¿Cuál es la relación de parentesco con el jefe(a) del hogar'
In [78]:
Out[78]:
'¿Está presente en el hogar 30 días o más?'
In [69]:
Out[69]:
In [71]:
Out[71]:
In [72]:
Out[72]:
In [73]:
Out[73]:
In [74]:
Out[74]:
In [81]:
Out[81]:
In [88]:
In [119]:
Out[119]:
0 False
1 False
2 False
3 False
4 False
...
85030 False
85031 False
85032 False
85033 False
85034 False
Name: year, Length: 80900, dtype: bool
In [120]:
Out[120]:
0 False
1 False
2 False
3 False
4 False
...
85030 False
85031 False
85032 False
85033 False
85034 False
Name: year, Length: 80900, dtype: bool
In [121]:
In [116]:
Out[116]:
File "<ipython-input-116-da102ab91e68>", line 3
import packages("haven")
^
SyntaxError: invalid syntax