title: create anchor id for each row id in table Python Flask
body: <p><strong>strong text</strong>from flask import *
  import pandas as pd
  app = Flask(<strong>name</strong>)</p>
  <pre><code>@app.route(&quot;/&quot;)
  def show_home():
      return render_template('base.html',)
  
  @app.route(&quot;/mytable&quot;)
  def show_table():
      data = pd.read_csv(&quot;Book1.csv&quot;, header = 0)
      myData = data.values 
      return render_template('view.html', myData=myData)
      
  @app.route(&quot;/myredirect&quot;)
  def my_redirect():
      return redirect(url_for('show_table') + '#42')
  
  if __name__ == &quot;__main__&quot;:
      app.run(debug=True)
  </code></pre>
  <h2>Base.html</h2>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;p&gt;
        &lt;a href=&quot;{{url_for('my_redirect',_anchor='5') }}&quot;&gt;5&lt;/a&gt;
     &lt;/p&gt;
     &lt;p&gt;
        &lt;a href=&quot;{{url_for('my_redirect',_anchor='4') }}&quot;&gt;4&lt;/a&gt;
     &lt;/p&gt;
  &lt;/html&gt;
  </code></pre>
  <h5>I am using Python Flask and I am new to HTML. I have two tables. One is chip table and one is chip report table. I wish to click on the id on chip table and it will bring me to the chip report table in another html page and anchor to the row with the same chip id. For example: I click on ID = 5 on chip table, the html page will redirecte to chip report table html page and go to the row with chip id = 5.</h5>
  <p>When I click on 5, it should load the chip report table in (view.html) and jump to the row with id = 5</p>
  <p>Book1.csv
  1,24,34,25
  2,10,22,24
  3,12,13,15</p>
  <pre><code>enter code here
  </code></pre>