Skip to content

Commit

Permalink
fix: skiprows can be a given list
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanix-Darker committed Nov 14, 2023
1 parent 2b54753 commit 384b555
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion peakina/readers/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ def csv_meta(
"df_rows": reader_kwargs["nrows"],
}

start = 0 + reader_kwargs.get("skiprows", 0)
skiprows = reader_kwargs.get("skiprows", 0)
if isinstance(skiprows, list):
skiprows = len(skiprows)

start = 0 + skiprows
end = total_rows - reader_kwargs.get("skipfooter", 0)

preview_offset = reader_kwargs.get("preview_offset", 0)
Expand Down

0 comments on commit 384b555

Please sign in to comment.