Skip to content

missing pandas.core.config in v0.25 #27471

Closed
@Borda

Description

@Borda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions