informatica.infacore.functions.dq_functions.DataQualityFunctions.validate_usa_phone_number
- DataQualityFunctions.validate_usa_phone_number(src_data_object: DataObject, phone_col_name: str)
Parses the United States phone number from a string of text and validates if the area code is valid for the United States.
- Parameters:
src_data_object (DataObject) – The object name for the source DataObject class.
phone_col_name (str) – Column name corresponding to the USA phone number.
- Returns:
Validation values “Valid” or “Invalid” and a status description for the United States phone number in columnar representation.
- Return type:
table
Example
>>> import informatica.infacore as ic >>> dq_obj = ic.DataQualityFunctions() >>> dq_obj.validate_usa_phone_number(src_data_obj, phone_col_name)