How to style groups of rows differently based on a column’s value with Pandas Styler
What I am trying to accomplish: I have the following dataframe, df: data = {‘person’: {0: ‘a’, 1: ‘a’, 2: ‘a’, 3: ‘a’, 4: ‘a’, 5: ‘a’, 6: ‘b’, 7: ‘b’, 8: ‘b’, 9: ‘b’, 10: ‘b’, 11: ‘b’, 12: ‘c’, 13: ‘c’, 14: ‘c’, 15: ‘c’, 16: ‘c’, 17: ‘c’}, ‘x’: {0: 1, 1: […]