@ParitoshSingh #Initialize date values and find difference between two columns date_value = df.iloc[:,4:].values np.abs(np.diff(df[date_value].values)) #Find % difference between difference between values and the threshold. target = new_df4[['Target']].values np.abs(np.diff(df.iloc[:,4:].values)) > target See i believe that finding % difference between difference values is wrong here, because i am finding values that are greater than target. I request you, Could you please assist me on what i should be doing?.