def get_station_name(stn, stations):
    """Returns the station name from a KNMI station.

    Modifies the station name in such a way that a valid url can be obtained.

    Parameters
    ----------
    stn : int
        station number.
    stations : pandas DataFrame
        DataFrame with the station metadata.

    Returns
    -------
    str
        Name of the station.
    """

    stn_name = stations.loc[stn, 'naam']
    stn_name = stn_name.upper().replace(' ', '-')
    stn_name = stn_name.replace('(', '').replace(')', '')

    return stn_name