I have an issue while trying to extract signals data.
I run the following code:
import pandas as pd
import numpy as np
import simfin as sf
from simfin.names import *
market = 'us'
df_income_ttm = sf.load_income(variant='ttm', market=market)
df_prices = sf.load_shareprices(variant='daily', market=market)
df_vol_signals = sf.volume_signals(df_prices=df_prices,
But receive the following error:
py:679: RuntimeWarning: divide by zero encountered in log
result = getattr(ufunc, method)(*inputs, **kwargs)
I guess it has something to do with dividing by zero, but how can I solve it using the signals extract?