* GeoExtractor

*SDV Enterprise Feature. This feature is available to our licensed users and is not currently in our public library. To learn more about the SDV Enterprise and its extra features, visit our website.

The GeoExtractor extracts geographical context from the phone numbers so that they can be used later for data science. It keeps the original phone numbers so that the same exact numbers can be recovered during the reverse transform.

from rdt.transformers.phone_number import GeoExtractor

transformer = GeoExtractor()

Parameters

default_country: If phone number does not have an international country code, provide the country code to use.

(default) None

No default country. All phone numbers must have international country codes.

<string>

A string representing an Alpha-2 country code ('US')

Examples

from rdt.transformers.phone_number import GeoExtractor
ge = GeoExtractor(default_country='US')

Last updated