python-bigquery-dataframes icon indicating copy to clipboard operation
python-bigquery-dataframes copied to clipboard

feat: Display index and multi-index in anywidget mode

Open shuoweil opened this issue 1 month ago • 1 comments

This PR introduces several improvements related to the anywidget display mode. For displaying multi-index DataFrames in anywidget mode, it will be rendered with a nested "semi-exploding" view, similar to BigQuery web UI.

Added Index and Multi-Index DataFrame Example to Notebook:

  • The notebooks/dataframes/anywidget_mode.ipynb notebook now includes a new section demonstrating how to display a DataFrame with a MultiIndex using real data from the PyPI public dataset. This enhances the notebook's examples for complex data structures.

Added Index and Multi-Index System Tests:

  • The tests were made more robust by replacing brittle, generic string assertions with precise checks for unique data values within rendered HTML table cells.

See an example here: screen/6nyCvGjzpRwM2nW

Fixes #<459515995> 🦕

shuoweil avatar Nov 10 '25 22:11 shuoweil

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB