title: How to find local maxima for all the rows of a dataframe?
body: <pre><code>print(df.head())
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/DqfGv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DqfGv.jpg" alt="enter image description here"></a></p>
  
  <pre><code>from scipy.signal import argrelextrema
  
  ilocs_max = []
  
  for i in range (df.shape[0]):
  
  ilocs_max.append(argrelextrema(df.iloc[i,:].values, np.greater_equal, order=15))
  
  df.iloc[0,:].plot(figsize=(20,8))
  df.iloc[3000,:].plot(figsize=(20,8))
  df.iloc[3000, [df.loc[3000].tolist()]].plot(style='.', lw=10, color='red', marker="v")
  </code></pre>