Skip to content

Commit ec02ea9

Browse files
kjlippoldKen Lippold
andauthored
344 csv headers skiprow (#17)
* Set pd.read_csv skiprows to 0 * Allow extra args from data source extractor_cls to be passed to LocalFileExtractor extract method. --------- Co-authored-by: Ken Lippold <klippold@Kens-MacBook-Pro-2.local>
1 parent b357567 commit ec02ea9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hydroserverpy/api/models/etl/extractors/local_file_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class LocalFileExtractor(Extractor):
77
def __init__(self, extractor_config: ExtractorConfig):
88
super().__init__(extractor_config)
99

10-
def extract(self):
10+
def extract(self, *args, **kwargs):
1111
"""
1212
Opens the file and returns a file-like object.
1313
"""

src/hydroserverpy/api/models/etl/transformers/csv_transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def transform(
5050
df = pd.read_csv(
5151
clean_file,
5252
sep=self.delimiter,
53-
header=self.header_row,
53+
header=0,
5454
skiprows=self._build_skiprows(),
5555
usecols=usecols,
5656
dtype={self.timestamp.key: "string"},

0 commit comments

Comments
 (0)