mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 23:10:17 +00:00
col not key
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user