Forum Discussion

shabnam12's avatar
shabnam12
Advocate I
1 year ago
Solved

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...
  • v-echaithra's avatar
    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.