Skip to content

Commit 2c5a40b

Browse files
committed
Remove pandas reference
1 parent b347e6a commit 2c5a40b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

investing_algorithm_framework/services/order_service/order_backtest_service.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import logging
22

3-
import pandas as pd
43
import polars as pl
54

65
from investing_algorithm_framework.domain import BACKTESTING_INDEX_DATETIME, \
@@ -99,13 +98,6 @@ def check_pending_orders(self):
9998
.config[BACKTESTING_PENDING_ORDER_CHECK_INTERVAL]
10099
)
101100

102-
# Convert polaris df to pandas df
103-
df = df.to_pandas()
104-
105-
# Convert the 'Datetime' column to pandas Timestamp
106-
df["Datetime"] = pd.to_datetime(df["Datetime"])
107-
df.set_index("Datetime", inplace=True)
108-
109101
if self.has_executed(order, df):
110102
self.update(
111103
order.id,

0 commit comments

Comments
 (0)