in ml-tools-python/awspyml.py [0:0]
def _guess_schema_from_data(self, header_line):
if header_line == 'auto':
header_line = self._guess_if_header_line_present()
self._name_attributes(header_line)
for i in xrange(self.num_attributes): # Loop through columns
column = [row[i] for row in self.data]
if header_line:
column = column[1:]
self.schema.set_variable_type(i, self._guess_variable_type(column))
return self.schema