|
|
@ -10,7 +10,7 @@ class Backtest(Broker): |
|
|
|
|
|
|
|
def __init__(self, f_name: str, start=0, **kwargs) -> None: |
|
|
|
"""Read the csv file and store it into a dataframe""" |
|
|
|
self.data = pd.read_csv(f_name, **kwargs) |
|
|
|
self.data = pd.read_csv(f_name, **kwargs).fillna(method="ffill") |
|
|
|
self.curcor = start |
|
|
|
|
|
|
|
def __bool__(self): |
|
|
|