Created
July 27, 2020 19:58
-
-
Save beng/1a4383e4463583fada1f4c4f842b939d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
column_pairs = [ | |
# datatype, expected, given | |
("string", "fax","Fax"), | |
("string", "email", "Email"), | |
("string", "company_name","Company"), | |
("string", "company_street_address", "Company Address"), | |
("string", "company_street_addres_2","Company Address 2"), | |
("string", "company_city", "Company City"), | |
("string", "company_state", "Company State"), | |
("string", "company_zip", "Company Zip"), | |
("string", "company_phone", "Company Phone"), | |
("string", "company_fax", "Company Fax"), | |
("string", "company_email", "Company Email"), | |
] | |
tmpls = [] | |
for datatype, expected, given in column_pairs: | |
tmpls.append(f""" | |
{expected}: | |
type: {datatype} | |
original_name: {given} | |
""") | |
print("".join(tmpls)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment