We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fad65f0 commit c4b7154Copy full SHA for c4b7154
hdxms_datasets/reader.py
@@ -125,7 +125,13 @@ def read_hdexaminer_peptide_pool(source: Path | StringIO) -> nw.DataFrame:
125
header_line = source.readline()
126
127
else:
128
- df = nw.read_csv(source.as_posix(), backend=BACKEND, skip_rows=1, has_header=True)
+ kwargs = {
129
+ "polars": {"skip_rows": 1, "has_header": True},
130
+ "pandas": {"skiprows": [0]},
131
+ }
132
+ if BACKEND not in kwargs:
133
+ raise ValueError(f"Unsupported backend: {BACKEND}")
134
+ df = nw.read_csv(source.as_posix(), backend=BACKEND, **kwargs[BACKEND])
135
with open(source, "r") as fh:
136
exposure_line = fh.readline()
137
header_line = fh.readline()
0 commit comments