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 ,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Chaithra.