def parse(row):
    row[0] = int(row[0]) # Parse ID to an integer
    row[4] = datetime.strptime(row[4], DATE_FMT)
    return Customer(*row)
Parses a row and returns a named tuple.
dataset/ETHPy150Open DistrictDataLabs/spark-workshop/apps/customer.py/parse