I have a program that needs has an HTML button. I need it to execute a python function when it is clicked. The function doesn't change anything on the webpage other than rerouting to another page. How do I do this?
HTML Button
<div>
<button class="submit-btn success"><a href="/end">Press after submission</a></button>
</div>
Python Function
def PyFunc():
df = pd.DataFrame(data)
print(df)
data? and paste your flask code.