title: How to set no. of rows limit for pandas dataframe Maximum function
body: <p>I have 100 rows in column B but I want to find Maximum value for only 99 rows.</p>
  
  <p>If I use the below code it returns maximum value from 100 rows instead of 99 rows:</p>
  
  <pre><code>print(df1['noc'].max(axis=0)) 
  </code></pre>