Log missing data filllup if necessary
This commit is contained in:
parent
1afe6c1437
commit
01b5ece642
@ -84,7 +84,10 @@ def ohlcv_fill_up_missing_data(dataframe: DataFrame, ticker_interval: str) -> Da
|
|||||||
'low': df['close'],
|
'low': df['close'],
|
||||||
})
|
})
|
||||||
df.reset_index(inplace=True)
|
df.reset_index(inplace=True)
|
||||||
logger.debug(f"Missing data fillup: before: {len(dataframe)} - after: {len(df)}")
|
len_before = len(dataframe)
|
||||||
|
len_after = len(df)
|
||||||
|
if len_before != len_after:
|
||||||
|
logger.info(f"Missing data fillup: before: {len_before} - after: {len_after}")
|
||||||
return df
|
return df
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user