allensdk.brain_observatory.behavior.rewards_processing module¶
- allensdk.brain_observatory.behavior.rewards_processing.get_rewards(data: Dict, timestamps: ndarray) DataFrame [source]¶
Construct and return a pandas DataFrame containing reward data for this session
Parameters¶
- 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.
- Returns:
- pd.DataFrame
containing the data associated with rewards given in this session