pandapower
pandapower copied to clipboard
[bug] pandas max_rows setting overwritten on import
Issue Report Checklist
- [x] Searched the issues page for similar reports
- [x] Read the relevant sections of the documentation
- [x] Browse the tutorials and tests for usefull code snippets and examples of use
- [x] Reproduced the issue after updating with
pip install --upgrade pandapower
(orgit pull
) - [x] Tried basic troubleshooting (if a bug/error)
- [x] Restarted interpreter
- [x] Checked the pythonpath
- [x] Completed the Problem Description, What steps reproduce the problem and Versions sections below
Problem Description
On import pandapower seems to be changing the pandas display.max_rows setting to 9000 over the default or user configured value.
What steps reproduce the problem?
- Import pandapower as pp
- pandas.get_option('display.max_rows')
What is the expected output? What do you see instead?
The user settings are respected by pandapower and not overwritten on import. In my case left to the default value of 60.
Paste Traceback/Error Below (if applicable)
NA
Versions
- pandas version: 1.5.3
- networkx version: 3.0
- scipy version: 1.10.1
- numpy version: 1.24.2
- packaging version: 23.0
- tqdm version: 4.65.0
- deepdiff version: 6.2.3
- Operating System name/version: Linux 4.18.0-348.7.1el8_5.x86_64 (CentOS Linux 8)
Labels (if access available)
- [x] Choose a
labels
at the right side (e.g.bug
,controller
,OPF
...)