def get_column(self, column):
if "<STR_LIT:(>" in str(column):<EOL><INDENT>temp_list = column.split("<STR_LIT:(>")<EOL>key = temp_list[<NUM_LIT:1>].strip("<STR_LIT>")<EOL>func = temp_list[<NUM_LIT:0>].lower()<EOL><DEDENT>else:<EOL><INDENT>key = column<EOL>func = None<EOL><DEDENT>if "<STR_LIT:.>" not in key:<EOL><INDENT>for i in self.columns:<EOL><INDENT>if i.split("<STR_LIT:.>")[<NUM_LIT:1>] == key:<EOL><INDENT>key = i<EOL>break<EOL><DEDENT><DEDENT><DEDENT>col = [x.get(<EOL>key<EOL>) for x in self.rows]<EOL>if func is not None:<EOL><INDENT>if func == "<STR_LIT>":<EOL><INDENT>return [sum(col)]<EOL><DEDENT>elif func == "<STR_LIT>":<EOL><INDENT>return [max(col)]<EOL><DEDENT>elif func == "<STR_LIT>":<EOL><INDENT>return [min(col)]<EOL><DEDENT>elif func == "<STR_LIT>":<EOL><INDENT>return [sum(col) / float(len(col))]<EOL><DEDENT>elif func == "<STR_LIT:count>":<EOL><INDENT>return [len(col)]<EOL><DEDENT>elif func == "<STR_LIT>":<EOL><INDENT>return list(set(col))<EOL><DEDENT>else:<EOL><INDENT>raise Exception(<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT><DEDENT>return col<EOL>
Return the values having of column.