pandas Styler: evaluating default ARIA attribute inclusion in version 2.2+
0 reputation · 30 Jan 2024, 13:42 UTC
pandas Styler default ARIA attribute enablement
The goal is to determine whether pandas should add a minimal set of ARIA attributes (e.g., role="table", aria‑labelledby="myid") to the HTML table generated by Styler.render() by default, starting from a future release.
Currently, Styler.render() omits ARIA attributes unless the user calls set_table_attributes() or enables display.html.table_schema, which only adds a basic schema without ARIA support. Changing the default would improve out‑of‑the‑box accessibility but could alter the exact HTML output, potentially breaking downstream CSS selectors or JavaScript that depend on the present structure and would require a migration guide for existing reports.
Should pandas enable ARIA attributes by default, what version should introduce the change, and how should existing users be notified to avoid breaking changes?