neuroscout/populate/transform.py
def num_objects(ee_df, threshold=None):
        """ Counts the number of Extracted Events for each stimulus.
            Args:
                ee_df - ExtractedEvents in pandas df format
                threshold - filter threshold for ExtractedEvent value
        """
        if threshold is not None:
            ee_df.value = ee_df.value.astype('float')
            ee_df = ee_df[ee_df.value > threshold]

        counts = ee_df.groupby('stimulus_id').count()['value'].reset_index()

        return counts.to_dict('index').values()
 Counts the number of Extracted Events for each stimulus.
            Args:
                ee_df - ExtractedEvents in pandas df format
                threshold - filter threshold for ExtractedEvent value
        
Counts the number of Extracted Events for each stimulus.
Args:
ee_df - ExtractedEvents in pandas df format
threshold - filter threshold for ExtractedEvent value
Counts the number of Extracted Events for each stimulus . Args : ee_df - ExtractedEvents in pandas df format threshold - filter threshold for ExtractedEvent value
def num_objects(ee_df, threshold=None):
        if threshold is not None:
            ee_df.value = ee_df.value.astype('float')
            ee_df = ee_df[ee_df.value > threshold]
        counts = ee_df.groupby('stimulus_id').count()['value'].reset_index()
        return counts.to_dict('index').values()
def num_objects ( ee_df , threshold = None ) : if threshold is not None : ee_df . value = ee_df . value . astype ( 'float' ) ee_df = ee_df [ ee_df . value > threshold ] counts = ee_df . groupby ( 'stimulus_id' ) . count ( ) [ 'value' ] . reset_index ( ) return counts . to_dict ( 'index' ) . values ( )
Counts the number of Extracted Events for each stimulus.
Counts the number of Extracted Events for each stimulus .
""" Counts the number of Extracted Events for each stimulus.
            Args:
                ee_df - ExtractedEvents in pandas df format
                threshold - filter threshold for ExtractedEvent value
        """
ee_df
threshold