Description
-
[X ] I have searched the [pandas] tag on StackOverflow for similar questions.
-
[X ] I have asked my usage related question on StackOverflow.
Question about pandas
I am trying to use the pandas dataframe styler to colour cells of the dataframe and present the result on a webpage.
The rendered CSS shows up as follows:
#T_394319f6_5c20_11eb_832b_04ed338ce712row0_col6,#T_394319f6_5c20_11eb_832b_04ed338ce712row0_col7,
...
#T_394319f6_5c20_11eb_832b_04ed338ce712row1_col6 { background-colour: red }
For large tables, the number of ids can exceed 4096. When processed on the web-browser, the id's after 4096 are ignored and the cells are not coloured. Resulting in partially coloured HTML tables.
I have verified my style function works by downloading the Excel file of the styled object, which is coloured correctly. It seems to be a limitation on various web-browsers (Chrome, Firefox, Edge).
I have also tried randomizing the exact hexcode used to colour the cells, which fixes the problem.
What can I do?