def get_single_sleep_profile(df, resp_colnum, activity_colnum):
    """
    Returns a list of tuples with metabolic rate sums, the percentage sleep,
    and total beam breaks per hour for 24 hours, for one individual fly.
    """
    fly_activity = df.iloc[:,activity_colnum]
    fly_resp = df.iloc[:,resp_colnum]
    hourly_resp_sleep = []

    for i in range(24):
        #12 rows are selected at a time to bin into 1-hour
        activity = fly_activity[i*12:i*12+12]
        resp = fly_resp[i*12:i*12+12]
        num_sleep_blocks = 0
        for i in activity:
            if i == 0:
                num_sleep_blocks += 1
        sleep_avg = num_sleep_blocks / 12 * 100
        hourly_resp_sleep.append((resp.sum(), sleep_avg, activity.sum()))

    return hourly_resp_sleep