Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Jan 1, 2025
1 parent 7ecb08f commit ddefccc
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions narwhals/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,14 +983,9 @@ def generate_repr(header: str, native_repr: str) -> str:
output += f"└{'─' * length}┘"
return output

length = len(header)
diff = 39 - len(header)
return (
"┌"
+ "─" * length
+ "┐\n"
+ f"|{header}|\n"
+ "| Use `.to_native` to see native output |\n"
+ "└"
+ "─" * length
+ "┘"
f"┌{'─' * (39)}\n"
f"|{' '*(diff//2)}{header}{' '*(diff//2+diff%2)}|\n"
"| Use `.to_native` to see native output |\n" + "└" + "─" * 39 + "┘"
)

0 comments on commit ddefccc

Please sign in to comment.