diff options
| author | rabinnankhwa <rabin.nankhwa@gmail.com> | 2014-08-31 00:12:44 +0545 |
|---|---|---|
| committer | rabinnankhwa <rabin.nankhwa@gmail.com> | 2014-08-31 00:12:44 +0545 |
| commit | 5fbdd56fba67b259a2bee7979b20fbbd9a31dc63 (patch) | |
| tree | 5572061a828b82c8a9ea0bebd623fa0449e830b8 /tablib | |
| parent | f187cef5f45e8e4e59d15b732c6c8307142bb634 (diff) | |
| download | tablib-5fbdd56fba67b259a2bee7979b20fbbd9a31dc63.tar.gz | |
filter row and column values
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/core.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tablib/core.py b/tablib/core.py index 3fc55cb..48758bd 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -948,6 +948,10 @@ class Dataset(object): if cols is None: cols = list(self.headers) + #filter out impossible rows and columns + rows = [row for row in rows if row in range(self.height)] + cols = [header for header in cols if header in self.headers] + _dset = Dataset() #filtering rows and columns |
