Skip to content

Commit 8d87958

Browse files
author
y-p
committed
Merge pull request #4391 from y-p/PR_supress_disp_height_warning
ENH: suppress display.height DeprecationWarning
2 parents d14f864 + 39da82d commit 8d87958

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/format.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,8 @@ def get_console_size():
17211721
Returns (None,None) in non-interactive session.
17221722
"""
17231723
display_width = get_option('display.width')
1724-
display_height = get_option('display.height')
1724+
# deprecated.
1725+
display_height = get_option('display.height', silent=True)
17251726

17261727
# Consider
17271728
# interactive shell terminal, can detect term size

0 commit comments

Comments
 (0)