Skip to content

Commit

Permalink
Define max_columns option as a display option
Browse files Browse the repository at this point in the history
To overcome issue `pandas._config.config.OptionError: 'Pattern matched multiple keys'` in pandas 1.4.0, one need to specify display of render when defining the option.
  • Loading branch information
stijnvanhoey authored Feb 9, 2022
1 parent 35337dd commit a3833b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swmmio/core.py
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
from swmmio.utils.functions import trim_section_to_nodes
from swmmio.utils.text import get_inp_sections_details, get_rpt_sections_details, get_rpt_metadata

pd.set_option('max_columns', 5)
pd.set_option('display.max_columns', 5)

__all__ = ['Model', 'inp', 'rpt']

0 comments on commit a3833b1

Please sign in to comment.