Hi
I wish to create a dash DataTable from a pandas dataframe that has some conditioning on the color of the text. Below you can see my pandas dataframe structure and you will notice a list of sentences, and a corresponding sentiment score. What i want to do is create a dash DataTable that will change the font-color of each element in the list to its respective sentiment value, e.g. negative = red, neutral = orange, positive = green
Index | Sentence | Sentiment | Column 4 |
---|---|---|---|
0 | [website, mobile app are user’friendly, intuitive .] | [neutral, positive, neutral] | |
1 | [I am happy with the level of communication, updates provided by X .] | [positive, neutral] | |
2 | [network reliability gives me peace of mind .] | [positive] | |
3 | [I have had positive interactions with customer support team .] | [positive] | |
4 | [services have met, exceeded my expectations .] | [neutral, neutral] | |
5 | [I appreciate the flexibility of plan options .] | [positive] | |
6 | [I have had a smooth experience transitioning to X from my previous provider .] | [positive] | |
7 | [The billing process with X is straightforward, transparent .] | [positive, neutral] | |
8 | [I feel that X values me as a customer, listens to my feedback .] | [neutral, neutral] | |
9 | [Overall , I have had a good experience with X, plan to continue using their services .] | [neutral, positive, neutral] |