Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

A few pandas errors #79

@fingoldo

Description

@fingoldo

Probably caused by changes in pandas.

Symptom:

D:\Upd\Programming\PythonCodeRepository\votenrank\utils.py in
4 from tqdm.notebook import tqdm
5
----> 6 from experiment_impact_tracker.data_interface import DataInterface
7 from experiment_impact_tracker.data_utils import load_initial_info
8 from experiment_impact_tracker.utils import gather_additional_info

C:\ProgramData\Anaconda3\lib\site-packages\experiment_impact_tracker\data_interface.py in
35 from experiment_impact_tracker.utils import gather_additional_info
36
---> 37 pd.set_option("display.max_colwidth", -1)
38
39

C:\ProgramData\Anaconda3\lib\site-packages\pandas_config\config.py in call(self, *args, **kwds)
259
260 def call(self, *args, **kwds) -> T:
--> 261 return self.func(*args, **kwds)
262
263 # error: Signature of "doc" incompatible with supertype "object"

C:\ProgramData\Anaconda3\lib\site-packages\pandas_config\config.py in _set_option(*args, **kwargs)
158 o = _get_registered_option(key)
159 if o and o.validator:
--> 160 o.validator(v)
161
162 # walk the nested dict

C:\ProgramData\Anaconda3\lib\site-packages\pandas_config\config.py in is_nonnegative_int(value)
880
881 msg = "Value must be a nonnegative integer or None"
--> 882 raise ValueError(msg)
883
884

ValueError: Value must be a nonnegative integer or None

Suggested resolution:

data_interface.py, line 37:

try:
    pd.set_option("display.max_colwidth", -1)
except Exception as e:
    pd.set_option("display.max_colwidth", None)

And similar issue with importing:

file data.utils.py, line 7:

try:
    from pandas.io.json import json_normalize
except Exception as e:
    from pandas import json_normalize

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions