0

I have a .csv file that is being saved from a MySQL Query on a Raspberry Pi, and I would like to simply output the sum of column_1 in an HTML output.

I would just like to output a sentence like, The sum of column_1 is: XXX, but I am unsure how to access the .csv file in my directory, find the sum of a specific column, and then output that sum.

Thanks for your help :)

enter image description here

Gary
  • 2,137
  • 3
  • 23
  • 41
  • this involves back-end programming like php. not just HTML. Have you tried using any programming language? – Jereme Jan 23 '17 at 03:29
  • I'm familiar with Python and scripting based languages. I wonder if there is some interface between Python data cleansing to an HTML output? – Gary Jan 23 '17 at 03:32
  • So I think the title question should be convert csv file to HTML using python of something like that. But for csv I think you can simply parse the data out. You can always refer to the documentation. https://docs.python.org/3/library/csv.html – Jereme Jan 23 '17 at 13:03

1 Answers1

0

Please r&d on How to read .csv file using javascript in google OR refer stackoverflow question then you will sure about how to give output in .html page from .csv file.

Community
  • 1
  • 1
sonali
  • 1
  • 2