Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def dt_schema(header):
schema = []
for h in header:
h = column_header_sanitize(h)
schema.append({
'name':h,
'type':DT_Field_Lookup.get(h, 'STRING'),
'mode':'NULLABLE'
})
return schema