title: Use of panda .loc function in order to select a specific data within a column
body: <p>I have a dataset which can be found on this website: <a href="http://tennis-data.co.uk/alldata.php" rel="nofollow noreferrer">http://tennis-data.co.uk/alldata.php</a>. It gathers outcomes of both WTA and ATP tennis games over several years.</p>
  <p>I would like to find how many sets did the player “ Federer R.” win during the years 2016 and 2017, and for this I used the .loc function as shown below:</p>
  <pre><code>df = df_atp.loc[df_atp[&quot;Date&quot;].between(&quot;01/01/2016&quot;, &quot;31/12/2017&quot;), ['Winner', 'Wsets']]
  print(df)
  </code></pre>
  <p>When I print df, here is the result: (part of it since the whole result was very long)
  <a href="https://i.stack.imgur.com/2GBgU.png" rel="nofollow noreferrer">result</a></p>
  <p>I think I'm on the right path, but I want to specifically have only Federer on my results, but like the image shows it I have every other players. I have tried to add <code>[&quot;Federer R.&quot;]</code> at the end of the .loc function but it only gives me an error.</p>
  <p>What could I add to the .loc function in order to have only Federer in the results?</p>
  <p>Thank you in advance! :D</p>