allensdk.brain_observatory.behavior.rewards_processing module

allensdk.brain_observatory.behavior.rewards_processing.get_rewards(data: Dict, timestamps: numpy.ndarray) → pandas.core.frame.DataFrame[source]

Construct and return a pandas DataFrame containing reward data for this session

data: Dict
The dict that results from reading the stimulus pickle file associated with the session
timestamps: np.ndarray[1d]
A numpy array of timestamps associated with the stimulus frames in this session. timestamps[ii] is the clock time of the iith frame.

containing the data associated with rewards given in this session