INNER CODE UNIT · Python

point_in_polygon

jeroenjanssens/python-polars-the-definitive-guide · plugins/polars_geo/polars_geo/__init__.py:10

def point_in_polygon(point: IntoExpr, polygon: IntoExpr) -> pl.Expr:
    return register_plugin_function(
        plugin_path=PLUGIN_PATH,
        args=[point, polygon],
        function_name="point_in_polygon",
        is_elementwise=True,
    )


def haversine_distance(from_point: IntoExpr, to_point: IntoExpr) -> pl.Expr:
    return register_plugin_function(
        plugin_path=PLUGIN_PATH,
        args=[from_point, to_point],
        function_name="haversine_distance",
        is_elementwise=True,
    )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…