def clean_player_data(players_data):
    """clean the list of players so that dimensions are ints,  experience
     is showing True or False and the guardians are split into a list

    Parameters
    ----------
    players_data : list
        List of players data that requires cleaning

    Returns
    -------
    list
        list of cleaned player data
    """
    for player in players_data:
        player["dimension"] = player["height"][3:]
        player["height"] = int(player["height"][:2])

        if player["experience"] == 'YES':
            player["experience"] = True
        else:
            player["experience"] = False

        player["guardians"] = player["guardians"].split(' and ')

    return players_data