INNER CODE UNIT · Python

__init__

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

    def __init__(self, input_expression: pl.Expr):
        self._input_expression = input_expression

    def point_in_polygon(self, polygon: list[list[pl.Float64]]) -> pl.Expr:
        return point_in_polygon(self._input_expression, polygon)

    def haversine_distance(self, to_point: list[pl.Float64]) -> pl.Expr:
        return haversine_distance(self._input_expression, to_point)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…