features/signal_features.py
def signal_range(signal_df, channels):
    '''
    Calculate range of sensor signals.

    :param signal_df: Pandas DataFrame housing desired sensor signals
    :param channels: channels of signal to measure range
    :return: Pandas DataFrame housing calculated range for each signal channel
    '''
    range_df = pd.DataFrame()

    for channel in channels:
        range_df[channel + '_range'] = [signal_df[channel].max(skipna=True) - signal_df[channel].min(skipna=True)]

    return range_df

    Calculate range of sensor signals.

    :param signal_df: Pandas DataFrame housing desired sensor signals
    :param channels: channels of signal to measure range
    :return: Pandas DataFrame housing calculated range for each signal channel
    
Calculate range of sensor signals.
Calculate range of sensor signals .
def signal_range(signal_df, channels):
    range_df = pd.DataFrame()
    for channel in channels:
        range_df[channel + '_range'] = [signal_df[channel].max(skipna=True) - signal_df[channel].min(skipna=True)]
    return range_df
def signal_range ( signal_df , channels ) : range_df = pd . DataFrame ( ) for channel in channels : range_df [ channel + '_range' ] = [ signal_df [ channel ] . max ( skipna = True ) - signal_df [ channel ] . min ( skipna = True ) ] return range_df
Calculate range of sensor signals.
Calculate range of sensor signals .
'''
    Calculate range of sensor signals.

    :param signal_df: Pandas DataFrame housing desired sensor signals
    :param channels: channels of signal to measure range
    :return: Pandas DataFrame housing calculated range for each signal channel
    '''
Pandas DataFrame housing calculated range for each signal channel
Pandas DataFrame housing calculated range for each signal channel
signal_df
Pandas DataFrame housing desired sensor signals
Pandas DataFrame housing desired sensor signals
channels
channels of signal to measure range
channels of signal to measure range