import numpyas np
def detect_frequency_change(data, threshold=0.1):
"""
Detect frequency change in time series data
Args:
data: 1-D array-like, time series data
threshold: float, threshold for detecting frequency change, default is 0.1
Returns:
abnor