Skip to content
Advertisement

Python Excel styling using Pandas Library

I am coding a school project rn, where I have to analyse stocks and predict them. So now my problem is the code is finished, but I want to add colours in my Excel file.

I am using the following libraries:

  • requests
  • bs4
  • pandas
  • datetime

So I looked up the whole Internet and found nothing helpful. This is my code where the Excel file is written:

JavaScript

I want to color my Price Differences or the High|Low column. Can you please help me how to color the Excel file.

If you need more code let me know.

Advertisement

Answer

See these posts in the Stack Overflow:

Reference-1: Coloring Cells in Pandas

Reference-2: Easiest way to create a color gradient on excel using python/pandas?

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement