title: Python get pandas data per column name
body: <p>I am trying to extract data per pandas by column named 'model'.
  The below code does work, but how do I write the code if I want to use x = R1200GS (without '')?</p>
  
  <p>As I need to pass this var from other function, let me know if there is a good way.
  Thanks.</p>
  
  <pre><code>import pandas as pd
  
  def get_database(z):
      df=pd.read_csv("database.csv")
      df=df.query("model==@z")
      return df
  
  x = 'R1200GS'
  
  get_database(x)
  </code></pre>