Skip to content

Commit

Permalink
Merge pull request #121 from nkaz001/revert-120-master
Browse files Browse the repository at this point in the history
Revert "Feat: Update convert function in tardis.py to handle .parquet files"
  • Loading branch information
nkaz001 authored Aug 12, 2024
2 parents 1734cda + e9c1796 commit 28764f3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions py-hftbacktest/hftbacktest/data/utils/tardis.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,7 @@ def convert(

for file in input_files:
print('Reading %s' % file)
if file.endswith('.csv'):
df = pl.read_csv(file)
elif file.endswith('.parquet'):
df = pl.read_parquet(file, pyarrow_options={'use_threads': True})
else:
raise ValueError('Unsupported file format: %s' % file)
df = pl.read_csv(file)
if df.columns == trade_cols:
arr = (
df.with_columns(
Expand Down

0 comments on commit 28764f3

Please sign in to comment.