def timings(samples):
    """Converts samples to sample times per observation."""
    groups = samples.groupby(axis=1, level=0)
    return groups.apply(lambda group: group.iloc[:, (1)] - group.iloc[:, (0)])
