Like @stefano.menci said, it’s kind of difficult to understand the specifics of your question, so I’m not really sure if this is what you meant, but I remember someone using RichText recently with a Pandas Dataframe, here is a link to the post:
It even has some stripped down clone links in it, if they are still available.