ENH: make Styler compatible with non-unique indexes
#41269
Merged
Styler compatible with non-unique indexes
#41269