Expect values in a column to be tuples of degree-decimal (latitude, longitude) which contain a specific word when reverse geocoded.
expect_column_values_reverse_geocoded_lat_lon_to_contain
This expectation level is BETA
Contributors:
Tags:
geospatial
hackathon-2022
Metrics:
column_values.nonnull.unexpected_count
column_values.reverse_geocoded_lat_lon_contain.unexpected_count
table.row_count
column_values.reverse_geocoded_lat_lon_contain.unexpected_values
Description
Expect values in a column to be tuples of degree-decimal (latitude, longitude) which contain a specific word when reverse geocoded.
Args:
column (str): The column name.
Keyword Args:
word (str) : The word to check if it's contained in the reverse geocoded string. Must be a lowercase string.
provider (str or geopy.geocoder): The reverse geocoding service provider. Default: photon. More info here: https://geopandas.org/en/stable/docs/reference/api/geopandas.tools.reverse_geocode.html
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