missing pandas.core.config in v0.25 (original) (raw)

Problem description

I need a print table with several columns by default for automatic test purposes while the default number of columns changed from version v0.23. I was using a simple check

if 'display.max_columns' in pandas.core.config._registered_options: pandas.set_option('display.max_columns', 20)

but this was broken from v0.25 since the config is missing

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pandas.core' has no attribute 'config'

I have checked the release notes but I dd not find any info about moving this property...

Code Sample

.core.config._registered_options

Expected Output

Extending the columns to be shown

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit           : None
python           : 3.6.8.final.0
python-bits      : 64
OS               : Linux
OS-release       : 4.15.0-54-generic
machine          : x86_64
processor        : x86_64
byteorder        : little
LC_ALL           : None
LANG             : en_US.UTF-8
LOCALE           : en_US.UTF-8

pandas           : 0.25.0
numpy            : 1.15.4
pytz             : 2018.7
dateutil         : 2.7.5
pip              : 19.1.1