bad_idx = df.index[df['Adj Close'].pct_change().abs().ge(0.5)]
bad_idx
df.loc[(df.index >= bad_idx.min()) & (df.index < bad_idx.max()), 'Adj Close'
    ] *= 10
df
How to replace outlier data in pandas?