I am using the Pandas DataFrame styler and want to make every other column (based on the first level of a multi index rather than hard code) have a gray background. I know that with CSS you can use the column combinator to say something like
Th:nth-child(2n) || td
but it doesn't seem to be compatible with pandas styling.
In my DataFrame I have level 0 of a multi index as months and then level 1 as some other columns. The end goal is to have every other month be highlighted in some way.
Any help would be greatly appreciated.