def extract_value_from_gdf(x, gdf_sindex, gdf, column_name):
    """Access value

    Parameters
    ----------
    x
        row of dataframe
    gdf_sindex
        spatial index of dataframe of which we want to extract the value
    gdf
        GeoDataFrame of which we want to extract the value
    column_name
        column that contains the value we want to extract

    Returns
    -------
    extracted value from other gdf
    """
    return gdf.loc[list(gdf_sindex.intersection(x.bounds[:2]))][
        column_name
    ].values[0]