Path: blob/main/Trabajo_grupal/WG3/Grupo_9_py_Ej1.ipynb
2714 views
Kernel: Python 3 (ipykernel)
Ej.1
In [1]:
Out[1]:
In [2]:
In [3]:
Out[3]:
In [5]:
Out[5]:
In [6]:
Out[6]:
['District',
'Place',
'4_6_years_men',
'4_6_years_women',
'4_6_years_total',
'6_14_years_men',
'6_14_years_women',
'6_14_years_total',
'man_read',
'women_read',
'total_read',
'men_not_read',
'women_not_read',
'total_not_read',
'man_write',
'women_write',
'total_write',
'men_not_write',
'women_not_write',
'total_not_write',
'instruction_men',
'instruction_women',
'instruction_total',
'no_instruction_men',
'no_instruction_women',
'no_instruction_total',
'finished_instr_men',
'finished_instr_women',
'finished_instr_total',
'not_finished_instr_men',
'not_finished_instr_women',
'not_finished_instr_total',
'peruvian_men',
'peruvian_women',
'foreign_men',
'foreign_women',
'whites',
'natives',
'mestizos',
'blacks']
In [7]:
Out[7]:
pandas.core.indexes.base.Index
In [8]:
Out[8]:
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 197 entries, 0 to 196
Data columns (total 40 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 District 197 non-null object
1 Place 186 non-null object
2 4_6_years_men 197 non-null int64
3 4_6_years_women 197 non-null int64
4 4_6_years_total 197 non-null int64
5 6_14_years_men 196 non-null float64
6 6_14_years_women 197 non-null int64
7 6_14_years_total 197 non-null int64
8 man_read 197 non-null int64
9 women_read 193 non-null float64
10 total_read 197 non-null int64
11 men_not_read 197 non-null int64
12 women_not_read 197 non-null int64
13 total_not_read 196 non-null float64
14 man_write 196 non-null float64
15 women_write 196 non-null float64
16 total_write 192 non-null float64
17 men_not_write 191 non-null float64
18 women_not_write 197 non-null int64
19 total_not_write 194 non-null float64
20 instruction_men 197 non-null int64
21 instruction_women 195 non-null float64
22 instruction_total 195 non-null float64
23 no_instruction_men 194 non-null float64
24 no_instruction_women 197 non-null int64
25 no_instruction_total 197 non-null int64
26 finished_instr_men 194 non-null float64
27 finished_instr_women 192 non-null float64
28 finished_instr_total 196 non-null float64
29 not_finished_instr_men 196 non-null float64
30 not_finished_instr_women 196 non-null float64
31 not_finished_instr_total 196 non-null float64
32 peruvian_men 196 non-null float64
33 peruvian_women 196 non-null float64
34 foreign_men 196 non-null float64
35 foreign_women 195 non-null float64
36 whites 196 non-null float64
37 natives 191 non-null float64
38 mestizos 195 non-null float64
39 blacks 197 non-null int64
dtypes: float64(24), int64(14), object(2)
memory usage: 61.7+ KB
In [10]:
Out[10]:
In [11]:
Out[11]:
District 0
Place 11
4_6_years_men 0
4_6_years_women 0
4_6_years_total 0
6_14_years_men 1
6_14_years_women 0
6_14_years_total 0
man_read 0
women_read 4
total_read 0
men_not_read 0
women_not_read 0
total_not_read 1
man_write 1
women_write 1
total_write 5
men_not_write 6
women_not_write 0
total_not_write 3
instruction_men 0
instruction_women 2
instruction_total 2
no_instruction_men 3
no_instruction_women 0
no_instruction_total 0
finished_instr_men 3
finished_instr_women 5
finished_instr_total 1
not_finished_instr_men 1
not_finished_instr_women 1
not_finished_instr_total 1
peruvian_men 1
peruvian_women 1
foreign_men 1
foreign_women 2
whites 1
natives 6
mestizos 2
blacks 0
dtype: int64
In [16]:
Out[16]:
District 0
Place 11
4_6_years_men 0
4_6_years_women 0
4_6_years_total 0
6_14_years_men 1
6_14_years_women 0
6_14_years_total 0
man_read 0
women_read 4
total_read 0
men_not_read 0
women_not_read 0
total_not_read 1
man_write 1
women_write 1
total_write 5
men_not_write 6
women_not_write 0
total_not_write 3
instruction_men 0
instruction_women 2
instruction_total 2
no_instruction_men 3
no_instruction_women 0
no_instruction_total 0
finished_instr_men 3
finished_instr_women 5
finished_instr_total 1
not_finished_instr_men 1
not_finished_instr_women 1
not_finished_instr_total 1
peruvian_men 1
peruvian_women 1
foreign_men 1
foreign_women 2
whites 1
natives 6
mestizos 2
blacks 0
dtype: int64
In [17]:
Out[17]:
In [75]:
Out[75]:
['C.CIUDAD DEL CERRO' 'P.YANACANCHA' 'VICO' 'RANCA' 'PASCO' nan
'CAJAMARQUILLA' 'CAICO' 'ROCO' 'P.QUINUA' 'H.PARIAHUANCA' 'P.SULLUMARCA'
'H.SAN ANDRÉS' 'P.HUALLAY' 'C.HUAYCHAO' 'COCHAMARCA' 'P.CHACAYÁN'
'VILCABAMBA' 'CUCHES' 'CHANGO' 'MITO' 'ANTAPIRCA' 'P.CAYNA' 'A. COLPAS'
'C.MASQUIN' 'P.YAMOR' 'TANGOR' 'QUIO' 'CAURY' 'CHUCCHUC' 'COQUIN'
'A.YAPOC' 'P.YANAHUANCA' 'HUAYLACIRCA' 'HUARANTAMBO' 'ANDUCHACA' 'VILLO'
'MICHIVILCA' 'PILLAO' 'YACÁN' 'TÁPUC' 'CHAUPIMARCA' 'P.OXAPAMPA'
'P.JAUJA' 'A.CHUNÁN' 'C.PACAPACHA' 'HUANCAS' 'A.HUERTAS' 'PACA' 'MASMA'
'ATAURA' 'HUALÁ' 'JULCÁN' 'P.RICRÁN' 'A.PAUCÁN' 'P.APATA' 'HUAMALÍ'
'A.SAN LORENZO' 'PACUCHO' 'P.ORCOTUNA' 'A.VICSO' 'TISTES' 'P.HUARIPAMPA'
'A.PARCO' 'PACCHA' 'CANCHAPUNCO' 'C.ULLUSCA' 'CANCHAS' 'P.MUQUIYAUYO'
'MUQUI' 'P.ACOLLA' 'MARCO' 'TRAGADERO' 'ACAYA' 'YAUJAILLO' 'CURICACA'
'C.LLACUARI' 'P.HUANCARÍ' 'C.CHALHUAS' 'ARAMACHAY' 'P.MITO' 'A.CHAMBARÁ'
'C.QUICHA' 'HUACHAC' 'A.ACO' 'P.LLOCLLAPAMPA' 'VISCAS ESPERANZA'
'CONCHAILLO' 'MATA-CHICO' 'MATA-GRANDE' 'P.CONCEPCIÓN'
'SANTA ROSA DE OCOPA' 'HUANTAR' 'A.ALAYO' 'C.SAN ANTONIO DE CARICANCHO'
'SANTO DOMINGO' 'P.CÓMAS' 'C.CHUPA' 'COCHAS' 'P.MATAHUASI' 'P.HUANCAYO'
'CAJAS' 'P.CHUPACA' 'A.ISCOS' 'ANTAPAMPA' 'HUAUSCA GRANDE'
'SAN JUAN DE TARPA' 'COPCA' 'HUAYAN' 'HUAMANCACA' 'PILCOMAYO' 'AHUAC'
'ACAC' 'P.SAN GERÓNIMO' 'HUALHUAS' 'SAN PEDRO DE SAÑO' 'QUICHUAY'
'CASACANCHA' 'A.INGENIO' 'P.SANTA CRUZ DE QUILCAY' 'RANGRA'
'P.SAPALLANGA' 'A.LA PUNTA' 'P.PUCARÁ' 'C.PATALÁ' 'MARCAVALLE'
'COCHARCAS' 'P.CHONGOS' 'C.TURPAC Y TINYARI' 'SOCOS' 'PUMPUNGA' 'CHUPURO'
'CARHUAPACHA' 'A.HUAMANCACA' 'P.SICAYA' 'A.HUANCHAC' 'C.CACHICAMARCA'
'P.COLCA' 'A.CHACAPAMPA' 'HUASICANCHA' 'CUCHO' 'CHILIAY' 'POTACA' 'LARIA'
'CHONGOS ALTO' 'P.HUAYUCACHI' 'HUAMANMARCA' 'CACAS' 'HUARAPUQUIO'
'CULLHUAS' 'RETAMA' 'PACHA' 'P.TARMA' 'MACO' 'MULLUERO' 'CHANCHA'
'TARMATAMBO' 'P.JUNÍN' 'HUASAHUASY' 'PARI' 'YANEC' 'CHUPÁN' 'ACONCOCHA'
'ONDORES' 'P.ACOBAMBA' 'PICOY' 'C.HUARACAYO' 'A.PALCA' 'C.HUAILAHUICHÁN'
'P.PALCAMAYO' 'P.OROYA' 'HUAYNACANCHA' 'HUAYHUAY' 'P.CARHUAMAYO'
'ULCUMAYO' 'P.SAN RAMÓN' 'P.VISCATÁN' 'PAN DE AZÚCAR' 'SUITUCANCHA'
'CHACAPALCA' 'P.POMACOCHA' 'YAULI' 'MINAS DE MOROCOCHA']
183
In [18]:
Out[18]:
['CIUDAD DEL CERRO' 'HUAYLLAY' 'CHACAYÁN' 'CAYNA' 'YANAHUANCA' 'NINACACA'
'JAUJA' 'APATA' 'ORCOTUNA' 'HUARIPAMPA' 'MUQUIYAUYO' 'ACOLLA' 'CINCOS'
'MITO' 'LLOCLLAPAMPA' 'CONCEPCIÓN' 'COCHAS' 'MATAHUASI' 'HUANCAYO'
'CHUPACA' 'SAN GERÓNIMO' 'SAPALLANGA' 'CHONGOS' 'SICAYA' 'COLCA'
'HUAYUCACHI' 'TARMA' 'JUNÍN' 'ACOBAMBA' 'OROYA' 'CARHUAMAYO'
'CHANCHAMAYO' 'VITOC' 'CHACAPALCA' 'YAULI']
35
In [19]:
In [20]:
In [21]:
In [22]:
In [23]:
Out[23]:
In [24]:
Out[24]:
In [25]:
Out[25]:
In [27]:
Out[27]:
In [28]:
In [ ]: