Skip to content
Advertisement

Mute DEBUG alerts from ‘import pandas’ statement

I’m importing pandas and it continues to throw 7 DEBUG messages. It’s happening in JupyterLab and pythonanywhere. It does not appear when I comment out the pandas import

I tried to mute them using: warnings.filterwarnings(“ignore”), to no avail. Tried “from pandas import pandas as pd” to try and avoid any further import, etc.

JavaScript
JavaScript

… goes on for 100+ lines further

Advertisement

Answer

Try:

JavaScript

See https://docs.python.org/3/howto/logging.html#logging-basic-tutorial for more info on the logging module. It looks like something you are importing is setting the log level for you (or you are setting it yourself)

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement