We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cec070 commit 492ab47Copy full SHA for 492ab47
xarray/core/formatting.py
@@ -425,18 +425,18 @@ def summarize_index(
425
if max_width is None:
426
max_width = OPTIONS["display_width"]
427
428
- def prefix(index, length):
+ def suffix(index, length):
429
if index == 0 and length == 1:
430
return " "
431
elif index == 0:
432
- return "┌"
+ return "┐"
433
elif index >= length - 1:
434
- return "└"
+ return "┘"
435
else:
436
return "│"
437
438
preformatted = [
439
- pretty_print(f" {prefix(index, len(names))} {name} ", col_width)
+ pretty_print(f" {name} ", col_width) + suffix(index, len(names)) + " "
440
for index, name in enumerate(names)
441
]
442
0 commit comments