от 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))
#Creat a new dataframe of ilocs_max
df1 = pd.DataFrame(ilocs_max)
df.iloc[0,:].plot(figsize=(20,8))
df.iloc[3000,:].plot(figsize=(20,8))
df.iloc[3000, df1.iloc[3000].tolist()].plot(style='.', lw=10, color='red', marker="v"