title: Python Pandas get a value from the cell if two columns have a values
body: <p>I am studying python and pandas and I am having trouble.</p>
  <p>I have a dataframe and CSV like:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>A</th>
  <th>B</th>
  <th>C</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>A</td>
  <td>1</td>
  <td>syfgusj</td>
  </tr>
  <tr>
  <td>A</td>
  <td>2</td>
  <td>adaddsfd</td>
  </tr>
  <tr>
  <td>B</td>
  <td>1</td>
  <td>adsghfjgftrds</td>
  </tr>
  <tr>
  <td>B</td>
  <td>2</td>
  <td>adergtw</td>
  </tr>
  <tr>
  <td>C</td>
  <td>1</td>
  <td>adergtw</td>
  </tr>
  <tr>
  <td>C</td>
  <td>2</td>
  <td>addfgftre</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I am trying to get the value from the &quot;c&quot; column that is near the values in columns &quot;A&quot; and &quot;B&quot;:</p>
  <p>I'm trying to do something like:</p>
  <pre><code>If df[(df['A'] == &quot;A&quot;) &amp; (df['B'] == &quot;2&quot;)]:
          print *value from &quot;C&quot;: adaddsfd*
  </code></pre>
  <p>Can someone help me with this?</p>