Skip to content

Commit

Permalink
fix deprecated bfill method
Browse files Browse the repository at this point in the history
  • Loading branch information
realiti4 committed Nov 9, 2023
1 parent 3bdc4d8 commit b28d2d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tradingfeatures/apis/binance/funding.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ def convert_funding(self, df, get_latest=False): # convert 8h to 1h and backfil

df_empty = pd.DataFrame(index=aranged_array)
df = df_empty.join(df)
df = df_empty.join(df).fillna(method="bfill")
df = df_empty.join(df).bfill()
return df
2 changes: 1 addition & 1 deletion tradingfeatures/apis/bitmex/funding.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ def convert_funding(self, df, get_latest=False): # convert 8h to 1h and backfil

df_empty = pd.DataFrame(index=aranged_array)
df = df_empty.join(df)
df = df_empty.join(df).fillna(method="bfill")
df = df_empty.join(df).bfill()
return df

0 comments on commit b28d2d4

Please sign in to comment.