def turning(player_data, p, t):
    """
    >>> player_data = {}
    >>> player_data['a'] = pd.DataFrame({'tick':[4,5],'angle':[10,10]}, [4,5])
    >>> turning(player_data, 'a', 5)
    False
    >>> turning(player_data, 'a', 6)
    False
    >>> player_data['a'] = pd.DataFrame({'tick':[4,5],'angle':[10,11]}, [4,5])
    >>> turning(player_data, 'a', 5)
    True
    """
    
    if not (t in player_data[p]['tick']) or not ((t-1) in player_data[p]['tick']):
        return False
    
    if abs(player_data[p].loc[t,'angle'] - player_data[p].loc[t-1,'angle']) > 1e-8:
        return True
    
    return False