pola-rs / pyo3-polars

Plugins/extension for Polars
MIT License
232 stars 38 forks source link

fixup haversine example #69

Closed MarcoGorelli closed 5 months ago

MarcoGorelli commented 5 months ago

closes https://github.com/pola-rs/pyo3-polars/issues/49

haversine currently takes 5 arguments, but only 4 are used. I think this was probably an accident?

I've also made the example slightly more interesting by showing different start and end latitudes and longitudes instead of just showing that the distance of a point to itself is always 0 😄