I am working on machine learning modeling in Python in Databricks. My task is to predict coffee prices, and I am using ARIMA for this.
At various points in my notebook, warnings like this appear in the output:
warnings
The code snippet that generated this output is as follows:
def test_stationarity(timeseries):
rolmean = timeseries.rolling(window=12).mean()
rolstd = timeseries.rolling(window=12).std()
# Dickey-Fuller test
print('Resultados do Teste Dickey-Fuller:')
dftest = adfuller(timeseries, autolag='AIC')
dfoutput = pd.Series(dftest[0:4], index=['Estatística ADF', 'Valor-p', '#Lags Usados', 'Número de Observações Usadas'])
for key, value in dftest[4].items():
dfoutput[f'Valor Crítico ({key})'] = value
print(dfoutput)
I am already using warnings.filterwarnings('ignore')
and I also tried using warnings.filterwarnings("ignore", category=UserWarning, module="ipykernel")
. But the warnings continue to appear. Is it possible to exclude or hide them?
Amanda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.