Jupyter notebook renders a MultiIndex Dataframe misaligned
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=470166) </details> <!--IssueSummary end--> The ipynb render struggles to keep this particular multiindex dataframe aligned: | current | expected | | ------ | ------ | | ![image](/uploads/59401a8e444009d2a7e52f0a598c1e05/image.png) | ![image](/uploads/dca85bb901301e19c6821c8f25147d10/image.png) | Ref https://gitlab.com/gitlab-org/ai-powered/custom-models/cm-notebooks/-/merge_requests/2#note_1976115662. <!-- template sourced from https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitlab/issue_templates/Default.md --> ## Example code to reproduce the problem ```python import pandas as pd index = pd.MultiIndex.from_tuples( [('duo-chat with mistral', 'issues-epics')], names=['answering_model', 'dataset'] ) data = { 1: [16], 2: [3], 3: [26], 4: [36] } df = pd.DataFrame(data, index=index) df.columns.name = "correctness" df ```
issue