tabular-reader 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tabular_reader-0.1.2 → tabular_reader-0.1.3}/PKG-INFO +1 -1
- {tabular_reader-0.1.2 → tabular_reader-0.1.3}/pyproject.toml +1 -1
- {tabular_reader-0.1.2 → tabular_reader-0.1.3}/tabular_reader/__init__.py +1 -1
- {tabular_reader-0.1.2 → tabular_reader-0.1.3}/tabular_reader/reader.py +4 -0
- {tabular_reader-0.1.2 → tabular_reader-0.1.3}/LICENSE +0 -0
- {tabular_reader-0.1.2 → tabular_reader-0.1.3}/README.org +0 -0
|
@@ -92,6 +92,7 @@ class TabularReader:
|
|
|
92
92
|
restval=None,
|
|
93
93
|
restkey=None,
|
|
94
94
|
skip_blank_lines=False,
|
|
95
|
+
skip_rows=0,
|
|
95
96
|
*args,
|
|
96
97
|
**kwargs,
|
|
97
98
|
):
|
|
@@ -108,6 +109,9 @@ class TabularReader:
|
|
|
108
109
|
else:
|
|
109
110
|
raise ValueError(f"Unsupported format: {file_format}")
|
|
110
111
|
|
|
112
|
+
if skip_rows:
|
|
113
|
+
filtered_data = filtered_data[skip_rows:]
|
|
114
|
+
|
|
111
115
|
self.reader = iter(filtered_data)
|
|
112
116
|
self._fieldnames = fieldnames
|
|
113
117
|
self.restkey = restkey
|
|
File without changes
|
|
File without changes
|