title: How can I print the value based on conditions on pandas Dataframe?
body: <p>I'm new to pandas dataframe and python.
  Currently, I have a pandas dataframe which I'd like to print the values based on conditions set.</p>
  <p>My df looks like this:</p>
  <pre><code>ID     Name    Price
  1      Apple     1
  2      Orange    0.5
  3      Pear      0.7
  </code></pre>
  <p>I'd like to code it such that when I ask the user to input the ID, it will return the price. For example, if the user input 2, it should return 0.5.</p>
  <pre><code>inputid = input(&quot;Please input ID: &quot;)
  </code></pre>
  <p>What should I do next to get return Price from df based on the input?</p>