diff --git a/tablib/core.py b/tablib/core.py index c4efce3..69a684b 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -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