col not key

This commit is contained in:
Kenneth Reitz
2011-03-23 00:49:25 -04:00
parent 1efcb7a63d
commit 2d2ac9b708
+1 -1
View File
@@ -501,7 +501,7 @@ class Dataset(object):
if isinstance(col, basestring):
if col in self.headers:
col = self.headers.index(key) # get 'key' index from each data
col = self.headers.index(col) # get 'key' index from each data
else:
raise KeyError