Skip to content

Instantly share code, notes, and snippets.

@beng
Created July 27, 2020 19:58
Show Gist options
  • Save beng/1a4383e4463583fada1f4c4f842b939d to your computer and use it in GitHub Desktop.
Save beng/1a4383e4463583fada1f4c4f842b939d to your computer and use it in GitHub Desktop.
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