title: How to get the max value for different instances
body: <p>I have the following data. I wanted to find the max value for these data</p>
  <p>Raw Data</p>
  <pre><code>Date        Name    Hour    Data
  20210615    Jack    0   92.28
  20210615    Jack    1   92.02
  20210615    Jack    2   89.51
  20210615    Jack    3   89.13
  20210615    Jack    4   89.42
  20210615    Jack    5   90.55
  20210615    Jack    6   92.25
  20210615    Jack    7   93.97
  20210615    Jack    8   89.59
  20210615    Jack    9   90.25
  20210615    John    1   91.55
  20210615    John    2   90.71
  20210615    John    3   90.71
  20210615    John    4   92.56
  20210615    John    5   91.09
  20210615    John    6   91.36
  20210615    John    7   92.1
  20210615    John    8   92.4
  20210615    John    9   93.02
  </code></pre>
  <p>My requirement is to get the output as which is the max value</p>
  <pre><code>Date    Name    Hour    Data
  20210615    Jack    7   93.97
  20210615    John    9   93.02
  </code></pre>
  <p>I was using the following code, but it gives me only one value</p>
  <pre><code>df = df[df.data == df.data.max()]
  </code></pre>
  <p>Pl help</p>