Solution
@app.route('/')
def index():
src = os.path.join(app.config['UPLOAD_FOLDER'], 'file.xlsx')
df = pd.read_excel(src, engine='openpyxl')
return render_template('index.html', data=df.to_dict(orient='records')
@app.route('/')
def index():
src = os.path.join(app.config['UPLOAD_FOLDER'], 'file.xlsx')
df = pd.read_excel(src, engine='openpyxl')
return render_template('index.html', data=df.to_dict(orient='records')