Skip to content

Commit

Permalink
fixing conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
idiom-bytes committed Dec 14, 2023
2 parents 76aae07 + 6874ead commit 82c79d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pdr_backend/data_eng/plutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def save_rawohlcv_file(filename: str, df: pl.DataFrame):

df = df.select(columns)

if os.path.exists(filename): # "append" existing file
if os.path.exists(filename): # append existing file
cur_df = pl.read_parquet(filename)
df = pl.concat([cur_df, df])
df.write_parquet(filename)
Expand Down Expand Up @@ -108,7 +108,6 @@ def load_rawohlcv_file(filename: str, cols=None, st=None, fin=None) -> pl.DataFr
Polars does not have an index. "timestamp" is a regular col and required for "datetime"
(1) Don't specify "datetime" as a column, as that'll get calc'd from timestamp
TO DO: Fix (1), save_rawohlcv_file already saves out dataframe.
Either don't save datetime, or save it and load it so it doesn't have to be re-computed.
"""
# handle cols
Expand Down

0 comments on commit 82c79d6

Please sign in to comment.