Support for multi index dataframe blob rendering
requested to merge 404708-jupyter-notebook-display-bug-for-pandas-dataframes-with-labeled-index into master
What does this MR do and why?
When adding the new blob rendering for dataframes within Jupyter Notebooks, we didn't take into account the dataframe index columns, either simple or multi-indexed. This adds that support, displaying indexes as bold.
Screenshots or screen recordings
JupyterLab rendering:
Gitlab Rendering:
Before | After |
---|---|
How to set up and validate locally
-
Open the following jupyter notebook: https://gitlab.com/gitlab-org/incubation-engineering/mlops/ipynb-test-projects/jupyter_table_test/-/blob/main/multi_index.ipynb
-
Verify that is is rendering according to the screenshots
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #404708 (closed)
Edited by Eduardo Bonet