Skip to content
Advertisement

How can I output values from an Excel table on my website?

In my Excel spreadsheet there are several values, both numbers and text. I would like to display these values on a web page inform of graphs. But I have no idea how to solve this, I thought of Python and PHP.

I try to do it with HTML and it is impossible.

Advertisement

Answer

You can read the file using the pandas library and create a html code with the same library.

import pandas as pd
 
df = pd.read_excel(yourfilepath)
df.to_html()
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement