pmorissette / ffn

ffn - a financial function library for Python
pmorissette.github.io/ffn
MIT License
2.03k stars 300 forks source link

NameError: name 'stats' is not defined #159

Closed akitxu closed 2 years ago

akitxu commented 3 years ago

Dear All

When I executing the sentence ax = stats.df_valor.to_drawdown_series().plot()

it returns the error `--------------------------------------------------------------------------- NameError Traceback (most recent call last)

in 1 # what about the drawdowns? ----> 2 ax = stats.df_valor.to_drawdown_series().plot() NameError: name 'stats' is not defined 1 ` Imported módules: `.... from scipy.stats import skew,kurtosis,norm,skewtest,kurtosistest ....` What can be the cause?. I will appreciate help.
mdengler commented 2 years ago

What stats are you working with? Perhaps you meant ffn.core.to_drawdown_series(df_valor)?