Expect column values to be lat/lon points within a geographic region.
expect_column_values_point_within_geo_region
This expectation level is EXPERIMENTAL
Contributors:
Tags:
experimental
Metrics:
column_values.nonnull.unexpected_count
column_values.point_within_geo_region.unexpected_count
table.row_count
column_values.point_within_geo_region.unexpected_values
Description
Expect column values to be lat/lon points within a geographic region.
This expectation will check a (longitude, latitude) tuple to see if it falls within a country input by the user or a polygon specified by user input points. To do this geo calculation, it leverages the Geopandas library. So for now it only supports the countries that are in the Geopandas world database. Importantly, countries are defined by their iso_a3 country code, not their full name.
Want to make your own Expectation or an improvement to this one?
We've put together some great how to guides (including videos) on how to create your own expectations in a flash!
You can see those resources here: Contributor Resources