Skip to content

Commit

Permalink
Don't pass additional kwargs to file open. (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucchi-cmu authored Mar 3, 2025
1 parent 9fcd5a5 commit 435ef8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hats/io/file_io/file_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def load_csv_to_pandas_generator(
pandas dataframe loaded from CSV
"""
file_pointer = get_upath(file_pointer)
with file_pointer.open(mode="rb", compression=compression, **kwargs) as csv_file:
with file_pointer.open(mode="rb", compression=compression) as csv_file:
with pd.read_csv(csv_file, chunksize=chunksize, **kwargs) as reader:
yield from reader

Expand Down

0 comments on commit 435ef8d

Please sign in to comment.