0

I am using the following script in the code to suppress the warning. However, I still receive a warning when calling sm.tsa.statespace.SARIMAX module.

warnings.simplefilter(action="ignore")

ValueWarning: No frequency information was provided, so inferred frequency MS will be used.

I just want to get rid of the warning. Is there anyway to enforce it?

user2512443
  • 485
  • 1
  • 6
  • 20

2 Answers2

0

If you just want to ignore the warning, try this:

import warnings
warnings.simplefilter(action='ignore', category=Warning)

But if you want to get rid of the reason of this warning, looking at this might help.

R. Marolahy
  • 1,325
  • 7
  • 17
0

# to suppress warnings

from warnings import filterwarnings
filterwarnings('ignore')