title: Load CSV data into MySQL using Python, create table and add record
body: <p>Unexpected error: <code>&lt;class 'NameError'&gt;</code></p>
  
  <p>My code to create a table and add a record from a csv, not sure how to rectify the error, should I use the same variable as in csv?</p>
  
  <p><a href="https://i.stack.imgur.com/b4O2C.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b4O2C.jpg" alt="code"></a></p>
  
  <p><a href="https://i.stack.imgur.com/gZszm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gZszm.jpg" alt="csv file"></a></p>