I ended up in cases where I accidentally run:
pd.option_context('display.max_columns', None,
'display.max_rows', None,
'display.width', None,
'display.max_colwidth', 0)
no suggestion with. Unfortunately, this changes the default print settings for all of my operators print.
My question is: how to restore to default context?
A call pd.option_context()without arguments does not work, I get:
ValueError: Need to invoke asoption_context(pat, val, [(pat, val), ...)).
source
share