Forum Discussion
shabnam12
1 year agoAdvocate I
Python Visual in Power BI: set_facecolor() not working after DataFrame transpose
Hi Power BI Community, I’m using Python visuals in Power BI and rendering a stylized table using matplotlib.pyplot.table(). The setup works perfectly when using a regular DataFrame — I'm able to cha...
- 1 year ago
Hi shabnam12 ,
Your visual table’s layout looks correct, but the internal table grid may not treat the new header row in the same way. Fonts work because text props apply to any cell, but colors fail.Try targeting cells by column labels rather than row numbers, manually add a header row as part of celltext
Regards,
Chaithra.
v-echaithra
1 year agoCommunity Support
Hi shabnam12 ,
Your visual table’s layout looks correct, but the internal table grid may not treat the new header row in the same way. Fonts work because text props apply to any cell, but colors fail.
Try targeting cells by column labels rather than row numbers, manually add a header row as part of celltext
Regards,
Chaithra.