+
+ def extractfrommod(self, col, val):
+ return ([''] + self.colnames) + [line for line in self.csvtable[1:] if line[col + 1] == val]
+
+ def splitfromvar(self, col, var):
+ newtabs = {}
+ for line in self.csvtable[1:] :
+ mod = line[col]
+ if mod in newtabs :
+ newtabs[mod].append(line)
+ else :
+ newtabs[mod] = [line]
+ return ([''] + self.colnames) + newtab
+