Reading a CSV file in Flask and iterating through Jinga2
问题 I am trying to display data on my web app from a CSV file using Flask. The below code reads my CSV file and assigns stocklist as the variable for my data. In the HTML code below it, using jinga logic, I iterate through stocklist however my CSV columns are returned as rows (see sample output and pic). How do I display the rows correctly? My python function: @app.route('/stocks') def Stocks(): filename = 'stock_scraper - dev.csv' data = pandas.read_csv(filename, header=0) stocklist = list(data