Skip to content

Commit

Permalink
#77 add all Mexico states abbreviations and its source in the docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
atarchetti committed Feb 15, 2023
1 parent d5811b2 commit f60cbfe
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 2 deletions.
98 changes: 97 additions & 1 deletion data/dicts/mexico_abbreviations.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,100 @@ BLVD,BOULEVARD
LT,LOTE
MZ,MANZANA
CDMX,Ciudad de México
DF,Distrito Federal
DF,Distrito Federal
AGU,Aguascalientes
BCN,Baja California Norte
BCS,Baja California Sur
CAM,Campeche
CHP,Chiapas
CHH,Chihuahua
COA,Coahuila
CL,Colima
DUR,Durango
MEX,Estado de México
GTO,Guanajuato
GRO,Guerrero
HGO,Hidalgo
JAL,Jalisco
MIC,Michoacán
MOR,Morelos
NAY,Nayarit
NLE,Nuevo León
OAX,Oaxaca
PUE,Puebla
QRO,Querétaro
QR,Quintana Roo
SLP,San Luis Potosí
SIN,Sinaloa
SON,Sonora
TAB,Tabasco
TAM,Tamaulipas
TLAX,Tlaxcala
VER,Veracruz
YUC,Yucatán
ZAC,Zacatecas
CDMX,Ciudad de México
ARS,Aguascalientes
AG,Aguascalientes
B.C,Baja California
BC,Baja California
B.C.S,Baja California Sur
BCS,Baja California Sur
Camp,Campeche
CM,Campeche
Chis,Chiapas
CS,Chiapas
Chih,Chihuahua
CH,Chihuahua
Coah,Coahuila
CO,Coahuila
Col,Colima
CL,Colima
CDMX,Mexico City
DF,Mexico City
Dgo,Durango
DG,Durango
Gto,Guanajuato
GT,Guanajuato
Gro,Guerrero
GR,Guerrero
Hgo,Hidalgo
HG,Hidalgo
Jal,Jalisco
JA,Jalisco
Edomex,Mexico
MEX,Mexico
Mich,Michoacán
MI,Michoacán
Mor,Morelos
MO,Morelos
Nay,Nayarit
NA,Nayarit
N.L,Nuevo León
NL,Nuevo León
Oax,Oaxaca
OA,Oaxaca
Pue,Puebla
PU,Puebla
Qro,Querétaro
QT,Querétaro
Q.R,Quintana Roo
QR,Quintana Roo
S.L.P,San Luis Potosí
SL,San Luis Potosí
Sin,Sinaloa
SI,Sinaloa
Son,Sonora
SO,Sonora
Tab,Tabasco
TB,Tabasco
Tamps,Tamaulipas
TM,Tamaulipas
Tlax,Tlaxcala
TL,Tlaxcala
Ver,Veracruz
VE,Veracruz
Yuc,Yucatán
YU,Yucatán
Zac,Zacatecas
ZA,Zacatecas
3 changes: 2 additions & 1 deletion hygia/data_pipeline/pre_process_data/pre_process_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class PreProcessData:
"""
This class presents a series of functions that help in data pre-processing.
As concatenate columns, replace abbreviation, and etc.
Some abbreviations were taken from this website: https://en.wikipedia.org/wiki/Template:Mexico_State-Abbreviation_Codes
Examples -
Use this class like this:
Expand Down

0 comments on commit f60cbfe

Please sign in to comment.